1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Merge pull request #8759 from TonyBlit/3d_speed

Feature: show 3d speed on the OSD
This commit is contained in:
Michael Keller 2019-09-01 01:19:03 +12:00 committed by GitHub
commit c33cc100ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 7 deletions

View file

@ -390,7 +390,11 @@ static void osdUpdateStats(void)
int16_t value = 0;
#ifdef USE_GPS
value = gpsSol.groundSpeed;
if (gpsConfig()->gps_use_3d_speed) {
value = gpsSol.speed3d;
} else {
value = gpsSol.groundSpeed;
}
if (stats.max_speed < value) {
stats.max_speed = value;
}