mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Feature: show 3d speed on OSD
This commit is contained in:
parent
b215def714
commit
0ddcfc097c
7 changed files with 21 additions and 7 deletions
|
@ -389,7 +389,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