class RCUpdate
More...
#include <rc_update.h>
class RCUpdate
Handling of RC updates
Definition at line 72 of file rc_update.h.
◆ RCUpdate()
RCUpdate::RCUpdate::RCUpdate |
( |
| ) |
|
◆ ~RCUpdate()
RCUpdate::RCUpdate::~RCUpdate |
( |
| ) |
|
|
override |
◆ custom_command()
int RCUpdate::RCUpdate::custom_command |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
◆ get_rc_sw2pos_position()
switch_pos_t RCUpdate::RCUpdate::get_rc_sw2pos_position |
( |
uint8_t |
func, |
|
|
float |
on_th, |
|
|
bool |
on_inv |
|
) |
| |
|
private |
◆ get_rc_sw3pos_position()
switch_pos_t RCUpdate::RCUpdate::get_rc_sw3pos_position |
( |
uint8_t |
func, |
|
|
float |
on_th, |
|
|
bool |
on_inv, |
|
|
float |
mid_th, |
|
|
bool |
mid_inv |
|
) |
| |
|
private |
Get switch position for specified function.
Definition at line 187 of file rc_update.cpp.
◆ get_rc_value()
float RCUpdate::RCUpdate::get_rc_value |
( |
uint8_t |
func, |
|
|
float |
min_value, |
|
|
float |
max_value |
|
) |
| |
|
private |
◆ init()
bool RCUpdate::RCUpdate::init |
( |
| ) |
|
◆ parameters_updated()
void RCUpdate::RCUpdate::parameters_updated |
( |
| ) |
|
|
private |
◆ print_status()
int RCUpdate::RCUpdate::print_status |
( |
| ) |
|
|
override |
◆ print_usage()
int RCUpdate::RCUpdate::print_usage |
( |
const char * |
reason = nullptr | ) |
|
|
static |
◆ rc_parameter_map_poll()
void RCUpdate::RCUpdate::rc_parameter_map_poll |
( |
bool |
forced = false | ) |
|
|
private |
◆ Run()
void RCUpdate::RCUpdate::Run |
( |
| ) |
|
|
override |
Definition at line 251 of file rc_update.cpp.
References uart_esc::_parameters, df_bebop_bus_wrapper::_rc_pub, input_rc_s::channel_count, math::constrain(), f(), hrt_absolute_time(), hrt_elapsed_time(), manual_control_setpoint_s::mode_slot, perf_begin(), perf_end(), input_rc_s::rc_failsafe, linux_sbus::rc_input, input_rc_s::rc_lost, input_rc_s::rc_lost_frame_count, RCUpdate::RC_MAX_CHAN_COUNT, input_rc_s::rssi, actuator_controls_s::timestamp, input_rc_s::timestamp_last_signal, and input_rc_s::values.
◆ set_params_from_rc()
void RCUpdate::RCUpdate::set_params_from_rc |
( |
| ) |
|
|
private |
◆ task_spawn()
int RCUpdate::RCUpdate::task_spawn |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
◆ update_rc_functions()
void RCUpdate::RCUpdate::update_rc_functions |
( |
| ) |
|
|
private |
◆ _actuator_group_3_pub
manual control as actuator topic
Definition at line 140 of file rc_update.h.
◆ _filter_pitch
◆ _filter_roll
filters for the main 4 stick inputs
Definition at line 151 of file rc_update.h.
◆ _filter_throttle
◆ _filter_yaw
we want smooth setpoints as inputs to the controllers
Definition at line 153 of file rc_update.h.
◆ _input_rc_sub
◆ _last_rc_to_param_map_time
hrt_abstime RCUpdate::RCUpdate::_last_rc_to_param_map_time = 0 |
|
private |
◆ _loop_perf
◆ _manual_control_pub
manual control signal topic
Definition at line 142 of file rc_update.h.
◆ _param_rc_values
float RCUpdate::RCUpdate::_param_rc_values[rc_parameter_map_s::RC_PARAM_MAP_NCHAN] {} |
|
private |
parameter values for RC control
Definition at line 147 of file rc_update.h.
◆ _parameter_handles
handles for interesting parameters
Definition at line 132 of file rc_update.h.
◆ _parameter_update_sub
notification of parameter updates
Definition at line 136 of file rc_update.h.
◆ _parameters
local copies of interesting parameters
Definition at line 131 of file rc_update.h.
◆ _rc
◆ _rc_parameter_map
◆ _rc_parameter_map_sub
rc parameter map subscription
Definition at line 137 of file rc_update.h.
◆ _rc_pub
The documentation for this class was generated from the following files: