50 #include "satellite.h"
51 #include "stabilisation.h"
52 #include "mav_modes.h"
54 #define REMOTE_CHANNEL_COUNT 8
153 float channels[REMOTE_CHANNEL_COUNT];
154 channel_inv_t channel_inv[REMOTE_CHANNEL_COUNT];
155 float trims[REMOTE_CHANNEL_COUNT];
178 void remote_update(
remote_t* remote);
188 signal_quality_t remote_check(
remote_t* remote);
197 void remote_calibrate(
remote_t* remote, remote_channel_t channel);
206 float remote_get_throttle(
const remote_t* remote);
215 float remote_get_roll(
const remote_t* remote);
224 float remote_get_pitch(
const remote_t* remote);
233 float remote_get_yaw(
const remote_t* remote);
248 void remote_mode_update(
remote_t* remote);
remote_channel_t safety_channel
Channel to use as 2-way "safety" switch. When 100%: safety mode, When -100%: normal mode (defined by ...
Definition: remote.h:123
The configuration structure of the remote.
Definition: remote.h:141
remote_channel_t mode_switch_channel
Channel to use as 3-way mode switch. The 3 corresponding modes are used when the safety channel is at...
Definition: remote.h:125
mav_mode_t mode_switch_up
Mode when the mode switch is UP (ARMED and HIL bit flags are ignored)
Definition: remote.h:126
satellite_t sat
The pointer to the raw values of the remote received by the interrupt.
Definition: remote.h:152
remote_mode_conf_t mode_config
The configuration structure.
Definition: remote.h:144
The configuration structure of the remote.
Definition: remote.h:150
mav_mode_t current_desired_mode
Mav mode indicated by the remote.
Definition: remote.h:135
int16_t deadzone
The size of the deadzone.
Definition: remote.h:157
The configuration structure of the remote mode.
Definition: remote.h:102
remote_type_t type
The type of remote used.
Definition: remote.h:143
remote_mode_t mode
The remote mode structure.
Definition: remote.h:160
remote_channel_t test_switch_channel
Channel to use as 2-way test switch. If not in safety, the switch overrides the test bit flag: 0 when...
Definition: remote.h:132
signal_quality_t signal_quality
The quality of signal.
Definition: remote.h:158
remote_channel_t test_switch_channel
See remote_mode_t for documentation.
Definition: remote.h:113
bool use_disable_remote_mode_switch
See remote_mode_t for documentation.
Definition: remote.h:114
mav_mode_t safety_mode
See remote_mode_t for documentation.
Definition: remote.h:105
mav_mode_t mode_switch_up
See remote_mode_t for documentation.
Definition: remote.h:107
remote_channel_t safety_channel
See remote_mode_t for documentation.
Definition: remote.h:104
The control command typedef.
Definition: stabilisation.h:77
Structure containing the satellite receiver's data.
Definition: satellite.h:56
bool use_test_switch
See remote_mode_t for documentation.
Definition: remote.h:112
mav_mode_t mode_switch_middle
See remote_mode_t for documentation.
Definition: remote.h:108
float scale
The scale of the remote channels.
Definition: remote.h:156
mav_mode_t mode_switch_down
Mode when the mode switch is DOWN (ARMED and HIL bit flags are ignored)
Definition: remote.h:128
bool use_custom_switch
See remote_mode_t for documentation.
Definition: remote.h:110
mav_mode_t mode_switch_middle
Mode when the mode switch is MIDDLE (ARMED and HIL bit flags are ignored)
Definition: remote.h:127
The structure of the remote mode.
Definition: remote.h:121
mav_mode_t safety_mode
Mode when the safety channel is at 100% (ARMED and HIL bit flags are ignored)
Definition: remote.h:124
remote_channel_t disable_remote_mode_channel
See remote_mode_t for documentation.
Definition: remote.h:115
remote_type_t type
The type of remote.
Definition: remote.h:159
Definition: mav_modes.h:147
remote_channel_t disable_remote_mode_channel
Channel to use as 2-way switch. When 100%: follow mode indicated by the remote, when -100%: override ...
Definition: remote.h:134
bool use_test_switch
Indicates whether a switch to activate the test flag should be used.
Definition: remote.h:131
mav_mode_t mode_switch_down
See remote_mode_t for documentation.
Definition: remote.h:109
remote_channel_t custom_switch_channel
Channel to use as 2-way custom switch. If not in safety, the switch overrides the custom bit flag: 0 ...
Definition: remote.h:130
remote_channel_t custom_switch_channel
See remote_mode_t for documentation.
Definition: remote.h:111
bool use_disable_remote_mode_switch
Indicates whether a switch should be used to use/override the mode indicated by the remote...
Definition: remote.h:133
bool use_custom_switch
Indicates whether a switch to activate the custom flag should be used.
Definition: remote.h:129
remote_channel_t mode_switch_channel
See remote_mode_t for documentation.
Definition: remote.h:106