1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

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.
This commit is contained in:
Bruce Luckcuck 2019-11-02 17:52:33 -04:00
parent 086c75b3bf
commit 4b600fbcb0

View file

@ -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