1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Merge pull request #6447 from bforbort/vario

Enable Vario on targets that support barometers
This commit is contained in:
Michael Keller 2018-09-18 23:53:09 +12:00 committed by GitHub
commit ea6c21f1e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 64 additions and 5 deletions

View file

@ -968,7 +968,7 @@ static bool osdDrawSingleElement(uint8_t item)
tfp_sprintf(buff, "%c%03d", osdGetDirectionSymbolFromHeading(heading), heading);
break;
}
#ifdef USE_VARIO
case OSD_NUMERICAL_VARIO:
{
const int verticalSpeed = osdGetMetersToSelectedUnit(getEstimatedVario());
@ -976,6 +976,7 @@ static bool osdDrawSingleElement(uint8_t item)
tfp_sprintf(buff, "%c%01d.%01d", directionSymbol, abs(verticalSpeed / 100), abs((verticalSpeed % 100) / 10));
break;
}
#endif
#ifdef USE_ESC_SENSOR
case OSD_ESC_TMP: