Firmware
Public Member Functions | Protected Member Functions | List of all members
vmount::InputRC Class Reference

class InputRC RC input class using manual_control_setpoint topic More...

#include <input_rc.h>

Inheritance diagram for vmount::InputRC:
vmount::InputBase

Public Member Functions

 InputRC (bool do_stabilization, int aux_channel_roll, int aux_channel_pitch, int aux_channel_yaw)
 
virtual void print_status ()
 report status to stdout
 
- Public Member Functions inherited from vmount::InputBase
virtual int update (unsigned int timeout_ms, ControlData **control_data, bool already_active)
 Wait for an input update, with a timeout. More...
 

Protected Member Functions

virtual int update_impl (unsigned int timeout_ms, ControlData **control_data, bool already_active)
 
virtual int initialize ()
 
virtual bool _read_control_data_from_subscription (ControlData &control_data, bool already_active)
 
int _get_subscription_fd () const
 
float _get_aux_value (const manual_control_setpoint_s &manual_control_setpoint, int channel_idx)
 
- Protected Member Functions inherited from vmount::InputBase
void control_data_set_lon_lat (double lon, double lat, float altitude, float roll_angle=0.f, float pitch_fixed_angle=-10.f)
 

Additional Inherited Members

- Protected Attributes inherited from vmount::InputBase
ControlData _control_data
 

Detailed Description

class InputRC RC input class using manual_control_setpoint topic

Constructor & Destructor Documentation

§ InputRC()

vmount::InputRC::InputRC ( bool  do_stabilization,
int  aux_channel_roll,
int  aux_channel_pitch,
int  aux_channel_yaw 
)
Parameters
do_stabilization
aux_channel_rollwhich aux channel to use for roll (set to 0 to use a fixed angle of 0)
aux_channel_pitch
aux_channel_yaw

Member Function Documentation

§ _read_control_data_from_subscription()

bool vmount::InputRC::_read_control_data_from_subscription ( ControlData control_data,
bool  already_active 
)
protectedvirtual
Returns
true if there was a change in control data

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