Copter: remove union from aux_con for switch state

This commit is contained in:
Randy Mackay 2016-10-14 10:28:56 +09:00
parent b23823a934
commit ccc99c772f
1 changed files with 8 additions and 10 deletions

View File

@ -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()