46 #include <mathlib/math/filter/LowPassFilter2p.hpp> 47 #include <uORB/topics/rc_channels.h> 97 float get_rc_value(uint8_t func,
float min_value,
float max_value);
102 switch_pos_t get_rc_sw3pos_position(uint8_t func,
float on_th,
bool on_inv,
float mid_th,
bool mid_inv);
103 switch_pos_t get_rc_sw2pos_position(uint8_t func,
float on_th,
bool on_inv);
115 int _rc_parameter_map_sub = -1;
121 struct rc_channels_s _rc;
123 struct rc_parameter_map_s _rc_parameter_map;
124 float _param_rc_values[rc_parameter_map_s::RC_PARAM_MAP_NCHAN];
void update_rc_functions()
update the RC functions.
Definition: rc_update.cpp:88
void rc_parameter_map_poll(ParameterHandles ¶meter_handles, bool forced=false)
Check for changes in rc_parameter_map.
Definition: rc_update.cpp:135
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Definition: uORB.h:134
RCUpdate(const Parameters ¶meters)
Definition: rc_update.cpp:53
class RCUpdate
Definition: rc_update.h:57
High-resolution timer with callouts and timekeeping.
Definition: parameters.h:156
Definition: parameters.h:58
void deinit()
deinitialize the object (we cannot use the destructor because it is called on the wrong thread) ...
Definition: rc_update.cpp:82
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
Definition: drv_hrt.h:58
Common header for mathlib exports.
int init()
initialize subscriptions etc.
Definition: rc_update.cpp:65
defines the list of parameters that are used within the sensors module
void rc_poll(const ParameterHandles ¶meter_handles)
Gather and publish RC input data.
Definition: rc_update.cpp:254
Definition: LowPassFilter2p.hpp:43