mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Blink the Launch Control warning element when throttle is withi… (#9142)
Blink the Launch Control warning element when throttle is within 10% of the trigger setting
This commit is contained in:
commit
ddd4d70bca
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