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:
commit
c33cc100ec
7 changed files with 21 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue