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
|
@ -1274,6 +1274,11 @@ static void osdElementWarnings(osdElementParms_t *element)
|
||||||
{
|
{
|
||||||
tfp_sprintf(element->buff, "LAUNCH");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
#endif // USE_LAUNCH_CONTROL
|
#endif // USE_LAUNCH_CONTROL
|
||||||
|
|
Loading…
Reference in New Issue