AP_Notify: fixed bitfields

This commit is contained in:
Andrew Tridgell 2014-11-10 06:33:54 +11:00
parent e48fcf2df7
commit bec1c05773

View File

@ -40,12 +40,12 @@ private:
/// tonealarm_type - bitmask of states we track
struct tonealarm_type {
bool armed : true; // false = disarmed, true = armed
bool failsafe_battery : true; // true if battery failsafe
bool gps_glitching : true; // true if gps position is not good
bool failsafe_gps : true; // true if gps failsafe
bool arming_failed : true; // false = failing checks, true = passed
bool parachute_release : true; // true if parachute is being released
bool armed : 1; // false = disarmed, true = armed
bool failsafe_battery : 1; // true if battery failsafe
bool gps_glitching : 1; // true if gps position is not good
bool failsafe_gps : 1; // true if gps failsafe
bool arming_failed : 1; // false = failing checks, true = passed
bool parachute_release : 1; // true if parachute is being released
} flags;
};