Firmware
|
C++ base class for modules/classes using configuration parameters. More...
Public Member Functions | |
ModuleParams (ModuleParams *parent) | |
void | setParent (ModuleParams *parent) |
Sets the parent module. More... | |
ModuleParams (const ModuleParams &)=delete | |
ModuleParams & | operator= (const ModuleParams &)=delete |
ModuleParams (ModuleParams &&)=delete | |
ModuleParams & | operator= (ModuleParams &&)=delete |
![]() | |
void | setSibling (ModuleParams * sibling) |
const ModuleParams * | getSibling () const |
Protected Member Functions | |
virtual void | updateParams () |
Call this method whenever the module gets a parameter change notification. More... | |
virtual void | updateParamsImpl () |
The implementation for this is generated with the macro DEFINE_PARAMETERS() | |
Additional Inherited Members | |
![]() | |
ModuleParams * | _sibling |
C++ base class for modules/classes using configuration parameters.
|
inline |
Sets the parent module.
This is typically not required, only in cases where the parent cannot be set via constructor.
|
inlineprotectedvirtual |
Call this method whenever the module gets a parameter change notification.
It will automatically call updateParams() for all children, which then call updateParamsImpl().
Reimplemented in PositionControl, FlightTaskAutoMapper2, and FlightTaskAutoMapper.