From 4b600fbcb0b9b4eafe95f58e132a9c5dd317ec7f Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Sat, 2 Nov 2019 17:52:33 -0400 Subject: [PATCH] Blink the Launch Control warning element when throttle is withing 10% of the trigger setting Provides a visual indication that throttle is close to the trigger limit. --- src/main/osd/osd_elements.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/osd/osd_elements.c b/src/main/osd/osd_elements.c index f82765cbb..0e90c34e5 100644 --- a/src/main/osd/osd_elements.c +++ b/src/main/osd/osd_elements.c @@ -1274,6 +1274,11 @@ static void osdElementWarnings(osdElementParms_t *element) { tfp_sprintf(element->buff, "LAUNCH"); } + + // Blink the message if the throttle is within 10% of the launch setting + if ( calculateThrottlePercent() >= MAX(currentPidProfile->launchControlThrottlePercent - 10, 0)) { + SET_BLINK(OSD_WARNINGS); + } return; } #endif // USE_LAUNCH_CONTROL