mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-08 22:53:57 -04:00
Notify: change firmware_update event to flag
This commit is contained in:
parent
068cdfe6a3
commit
872e6769b0
libraries/AP_Notify
@ -53,6 +53,7 @@ public:
|
|||||||
uint32_t parachute_release : 1; // 1 if parachute is being released
|
uint32_t parachute_release : 1; // 1 if parachute is being released
|
||||||
uint32_t ekf_bad : 1; // 1 if ekf is reporting problems
|
uint32_t ekf_bad : 1; // 1 if ekf is reporting problems
|
||||||
uint32_t autopilot_mode : 1; // 1 if vehicle is in an autopilot flight mode (only used by OreoLEDs)
|
uint32_t autopilot_mode : 1; // 1 if vehicle is in an autopilot flight mode (only used by OreoLEDs)
|
||||||
|
uint32_t firmware_update : 1; // 1 just before vehicle firmware is updated
|
||||||
uint32_t compass_cal_running: 1; // 1 if a compass calibration is running
|
uint32_t compass_cal_running: 1; // 1 if a compass calibration is running
|
||||||
|
|
||||||
// additional flags
|
// additional flags
|
||||||
@ -72,7 +73,6 @@ public:
|
|||||||
uint16_t autotune_next_axis : 1; // 1 when autotune has completed one axis and is moving onto the next
|
uint16_t autotune_next_axis : 1; // 1 when autotune has completed one axis and is moving onto the next
|
||||||
uint16_t mission_complete : 1; // 1 when the mission has completed successfully
|
uint16_t mission_complete : 1; // 1 when the mission has completed successfully
|
||||||
uint16_t waypoint_complete : 1; // 1 as vehicle completes a waypoint
|
uint16_t waypoint_complete : 1; // 1 as vehicle completes a waypoint
|
||||||
uint16_t firmware_update : 1; // 1 just before vehicle firmware is updated
|
|
||||||
uint16_t initiated_compass_cal : 1; // 1 when user input to begin compass cal was accepted
|
uint16_t initiated_compass_cal : 1; // 1 when user input to begin compass cal was accepted
|
||||||
uint16_t compass_cal_saved : 1; // 1 when compass calibration was just saved
|
uint16_t compass_cal_saved : 1; // 1 when compass calibration was just saved
|
||||||
uint16_t compass_cal_failed : 1; // 1 when compass calibration has just failed
|
uint16_t compass_cal_failed : 1; // 1 when compass calibration has just failed
|
||||||
|
@ -89,7 +89,7 @@ void OreoLED_PX4::update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handle firmware update event
|
// handle firmware update event
|
||||||
if (AP_Notify::events.firmware_update) {
|
if (AP_Notify::flags.firmware_update) {
|
||||||
set_macro(OREOLED_INSTANCE_ALL, OREOLED_PARAM_MACRO_COLOUR_CYCLE);
|
set_macro(OREOLED_INSTANCE_ALL, OREOLED_PARAM_MACRO_COLOUR_CYCLE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user