mirror of https://github.com/ArduPilot/ardupilot
Copter: remove union from aux_con for switch state
This commit is contained in:
parent
b23823a934
commit
ccc99c772f
|
@ -5,7 +5,6 @@
|
|||
#define CONTROL_SWITCH_DEBOUNCE_TIME_MS 200
|
||||
|
||||
//Documentation of Aux Switch Flags:
|
||||
static union {
|
||||
struct {
|
||||
uint8_t CH6_flag : 2; // 0, 1 // ch6 aux switch : 0 is low or false, 1 is center or true, 2 is high
|
||||
uint8_t CH7_flag : 2; // 2, 3 // ch7 aux switch : 0 is low or false, 1 is center or true, 2 is high
|
||||
|
@ -14,7 +13,6 @@ static union {
|
|||
uint8_t CH10_flag : 2; // 8, 9 // ch10 aux switch : 0 is low or false, 1 is center or true, 2 is high
|
||||
uint8_t CH11_flag : 2; // 10,11 // ch11 aux switch : 0 is low or false, 1 is center or true, 2 is high
|
||||
uint8_t CH12_flag : 2; // 12,13 // ch12 aux switch : 0 is low or false, 1 is center or true, 2 is high
|
||||
};
|
||||
} aux_con;
|
||||
|
||||
void Copter::read_control_switch()
|
||||
|
|
Loading…
Reference in New Issue