From 5651835bf64b887dfc10eae84ae514d5374d9ac8 Mon Sep 17 00:00:00 2001 From: Error414 Date: Sat, 18 Jan 2025 21:28:24 +0100 Subject: [PATCH] fix cardinal for DJI --- src/main/io/osd_hud.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/io/osd_hud.c b/src/main/io/osd_hud.c index 8a6a68f467a..e95ca5fe5f1 100644 --- a/src/main/io/osd_hud.c +++ b/src/main/io/osd_hud.c @@ -187,6 +187,11 @@ void osdHudDrawPoi(uint32_t poiDistance, int16_t poiDirection, int32_t poiAltitu d = 0; // Directly behind } + //for native DJI is 0 direction forward + if(osdConfig()->video_system == VIDEO_SYSTEM_DJI_NATIVE) { + d = (d + 6) % 12; + } + d = SYM_HUD_CARDINAL + d; osdHudWrite(poi_x + 2, poi_y, d, 1); } else {