AP_Notify: fixed bitfields
This commit is contained in:
parent
e48fcf2df7
commit
bec1c05773
@ -40,12 +40,12 @@ private:
|
|||||||
|
|
||||||
/// tonealarm_type - bitmask of states we track
|
/// tonealarm_type - bitmask of states we track
|
||||||
struct tonealarm_type {
|
struct tonealarm_type {
|
||||||
bool armed : true; // false = disarmed, true = armed
|
bool armed : 1; // false = disarmed, true = armed
|
||||||
bool failsafe_battery : true; // true if battery failsafe
|
bool failsafe_battery : 1; // true if battery failsafe
|
||||||
bool gps_glitching : true; // true if gps position is not good
|
bool gps_glitching : 1; // true if gps position is not good
|
||||||
bool failsafe_gps : true; // true if gps failsafe
|
bool failsafe_gps : 1; // true if gps failsafe
|
||||||
bool arming_failed : true; // false = failing checks, true = passed
|
bool arming_failed : 1; // false = failing checks, true = passed
|
||||||
bool parachute_release : true; // true if parachute is being released
|
bool parachute_release : 1; // true if parachute is being released
|
||||||
} flags;
|
} flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user