Skip to content

Commit eed00c9

Browse files
committed
Adjust ESC status light colors for flight modes
Update LED patterns in src/sp140/esc.cpp: FLIGHT_WARNING now uses LED_YELLOW instead of LED_GREEN, and FLIGHT_CRITICAL now uses LED_RED instead of LED_YELLOW. This aligns the visual indicators with expected severity levels (warning -> yellow, critical -> red).
1 parent c8c0242 commit eed00c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sp140/esc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void sendEscStatusLight(EscStatusLightMode mode) {
101101
}
102102
case EscStatusLightMode::FLIGHT_WARNING: {
103103
const uint16_t pattern[] = {
104-
SineEsc::makeLedControlEntry(SineEsc::LED_GREEN, 1),
104+
SineEsc::makeLedControlEntry(SineEsc::LED_YELLOW, 1),
105105
SineEsc::makeLedControlEntry(SineEsc::LED_OFF, 2),
106106
SineEsc::makeLedControlEntry(SineEsc::LED_YELLOW, 1),
107107
SineEsc::makeLedControlEntry(SineEsc::LED_OFF, 30),
@@ -111,7 +111,7 @@ void sendEscStatusLight(EscStatusLightMode mode) {
111111
}
112112
case EscStatusLightMode::FLIGHT_CRITICAL: {
113113
const uint16_t pattern[] = {
114-
SineEsc::makeLedControlEntry(SineEsc::LED_YELLOW, 1),
114+
SineEsc::makeLedControlEntry(SineEsc::LED_RED, 1),
115115
SineEsc::makeLedControlEntry(SineEsc::LED_OFF, 2),
116116
SineEsc::makeLedControlEntry(SineEsc::LED_RED, 1),
117117
SineEsc::makeLedControlEntry(SineEsc::LED_OFF, 30),

0 commit comments

Comments
 (0)