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:
Michael Keller 2019-11-04 14:37:39 +13:00 committed by GitHub
commit ddd4d70bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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