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:
parent
086c75b3bf
commit
4b600fbcb0
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue