Skip to content

Commit 59490a8

Browse files
committed
Revert "z direction is wrong"
This reverts commit bc28e32.
1 parent bc28e32 commit 59490a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/io/osd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ static bool osdDrawSingleElement(uint8_t item)
27612761
// -------- POI : Home point
27622762

27632763
if (osdConfig()->hud_homepoint) { // Display the home point (H)
2764-
osdHudDrawPoi(GPS_distanceToHome, GPS_directionToHome, osdGetAltitude() / 100, 0, SYM_HOME, 0 , 0);
2764+
osdHudDrawPoi(GPS_distanceToHome, GPS_directionToHome, -osdGetAltitude() / 100, 0, SYM_HOME, 0 , 0);
27652765
}
27662766

27672767
// -------- POI : Flight direction
@@ -2773,7 +2773,7 @@ static bool osdDrawSingleElement(uint8_t item)
27732773

27742774
// Nur Richtung anzeigen, keine Vorausschau mehr
27752775
float direction_deg = RADIANS_TO_DEGREES(atan2f((float)vy, (float)vx));
2776-
int altitude_relative = (vz / 100); // als Höhe anzeigen (optional)
2776+
int altitude_relative = -(vz / 100); // als Höhe anzeigen (optional)
27772777

27782778
// Flugrichtung nur darstellen, wenn relevante Bewegung vorhanden ist
27792779
osdHudDrawPoi(

0 commit comments

Comments
 (0)