Firmware
Public Member Functions | List of all members
sensors::RCUpdate Class Reference

class RCUpdate More...

#include <rc_update.h>

Public Member Functions

 RCUpdate (const Parameters &parameters)
 
int init ()
 initialize subscriptions etc. More...
 
void deinit ()
 deinitialize the object (we cannot use the destructor because it is called on the wrong thread)
 
void rc_parameter_map_poll (ParameterHandles &parameter_handles, bool forced=false)
 Check for changes in rc_parameter_map.
 
void update_rc_functions ()
 update the RC functions. More...
 
void rc_poll (const ParameterHandles &parameter_handles)
 Gather and publish RC input data.
 

Detailed Description

class RCUpdate

Handling of RC updates

Constructor & Destructor Documentation

§ RCUpdate()

RCUpdate::RCUpdate ( const Parameters parameters)
Parameters
parametersparameter values. These do not have to be initialized when constructing this object. Only when calling init(), they have to be initialized.

Member Function Documentation

§ init()

int RCUpdate::init ( )

initialize subscriptions etc.

Returns
0 on success, <0 otherwise

§ update_rc_functions()

void RCUpdate::update_rc_functions ( )

update the RC functions.

Call this when the parameters change.


The documentation for this class was generated from the following files: