|
|
|
@ -76,19 +76,19 @@ void OreoLED_I2C::update()
@@ -76,19 +76,19 @@ void OreoLED_I2C::update()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (mode_firmware_update()) { |
|
|
|
|
return; // don't go any further if the Pixhawk is in firmware update
|
|
|
|
|
return; // don't go any further if in firmware update
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (mode_init()) { |
|
|
|
|
return; // don't go any further if the Pixhawk is initializing
|
|
|
|
|
return; // don't go any further if initializing
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (mode_failsafe_radio()) { |
|
|
|
|
return; // don't go any further if the Pixhawk is is in radio failsafe
|
|
|
|
|
return; // don't go any further if in radio failsafe
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (mode_failsafe_gcs()) { |
|
|
|
|
return; // don't go any further if the Pixhawk is is in gcs failsafe
|
|
|
|
|
return; // don't go any further if in gcs failsafe
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
set_standard_colors(); |
|
|
|
@ -123,7 +123,7 @@ bool OreoLED_I2C::slow_counter()
@@ -123,7 +123,7 @@ bool OreoLED_I2C::slow_counter()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Procedure for when Pixhawk is in FW update / bootloader
|
|
|
|
|
// Procedure for when in FW update / bootloader
|
|
|
|
|
// Makes all LEDs go into color cycle mode
|
|
|
|
|
// Returns true if firmware update in progress. False if not
|
|
|
|
|
bool OreoLED_I2C::mode_firmware_update() |
|
|
|
@ -149,7 +149,7 @@ bool OreoLED_I2C::mode_init()
@@ -149,7 +149,7 @@ bool OreoLED_I2C::mode_init()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Procedure for when Pixhawk is in radio failsafe
|
|
|
|
|
// Procedure for when in radio failsafe
|
|
|
|
|
// LEDs perform alternating Red X pattern
|
|
|
|
|
bool OreoLED_I2C::mode_failsafe_radio() |
|
|
|
|
{ |
|
|
|
@ -163,7 +163,7 @@ bool OreoLED_I2C::mode_failsafe_radio()
@@ -163,7 +163,7 @@ bool OreoLED_I2C::mode_failsafe_radio()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Procedure for when Pixhawk is in GCS failsafe
|
|
|
|
|
// Procedure for when in GCS failsafe
|
|
|
|
|
// LEDs perform alternating yellow X pattern
|
|
|
|
|
bool OreoLED_I2C::mode_failsafe_gcs() |
|
|
|
|
{ |
|
|
|
@ -237,7 +237,7 @@ bool OreoLED_I2C::mode_failsafe_batt()
@@ -237,7 +237,7 @@ bool OreoLED_I2C::mode_failsafe_batt()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Procedure for when Pixhawk is in an autopilot mode
|
|
|
|
|
// Procedure for when in an autopilot mode
|
|
|
|
|
// Makes all LEDs strobe super fast using standard colors
|
|
|
|
|
bool OreoLED_I2C::mode_auto_flight() |
|
|
|
|
{ |
|
|
|
@ -274,7 +274,7 @@ bool OreoLED_I2C::mode_auto_flight()
@@ -274,7 +274,7 @@ bool OreoLED_I2C::mode_auto_flight()
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Procedure for when Pixhawk is in a pilot controlled mode
|
|
|
|
|
// Procedure for when in a pilot controlled mode
|
|
|
|
|
// All LEDs use standard pattern and colors
|
|
|
|
|
bool OreoLED_I2C::mode_pilot_flight() |
|
|
|
|
{ |
|
|
|
|