#include <rc.h>

Classes | |
| struct | rc_stick_config_t |
| struct | rc_switch_config_t |
Public Types | |
| enum | Stick { STICK_X, STICK_Y, STICK_Z, STICK_F, STICKS_COUNT } |
| enum | Switch { SWITCH_ARM, SWITCH_ATT_OVERRIDE, SWITCH_THROTTLE_OVERRIDE, SWITCH_ATT_TYPE, SWITCHES_COUNT } |
Public Member Functions | |
| void | init () |
| bool | new_command () |
| void | param_change_callback (uint16_t param_id) override |
| RC (ROSflight &_rf) | |
| bool | run () |
| float | stick (Stick channel) |
| bool | switch_mapped (Switch channel) |
| bool | switch_on (Switch channel) |
Private Member Functions | |
| bool | check_rc_lost () |
| void | init_rc () |
| void | init_sticks () |
| void | init_switches () |
| void | look_for_arm_disarm_signal () |
Private Attributes | |
| uint32_t | last_rc_receive_time = 0 |
| bool | new_command_ |
| uint32_t | prev_time_ms = 0 |
| ROSflight & | RF_ |
| volatile float | stick_values [STICKS_COUNT] |
| rc_stick_config_t | sticks [STICKS_COUNT] |
| volatile bool | switch_values [SWITCHES_COUNT] |
| rc_switch_config_t | switches [SWITCHES_COUNT] |
| uint32_t | time_of_last_stick_deviation = 0 |
| uint32_t | time_sticks_have_been_in_arming_position_ms = 0 |
|
private |
|
overridevirtual |
Implements rosflight_firmware::ParamListenerInterface.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |