1
0
Fork 0
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:
Tony Cabello 2019-08-23 03:00:15 +02:00
parent b215def714
commit 0ddcfc097c
7 changed files with 21 additions and 7 deletions

View file

@ -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;
}