Skip to content

Commit

Permalink
Home arrow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RespawnDespair authored Oct 28, 2018
1 parent 9d076ed commit 8047bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion render.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ void draw_home_arrow(float abs_heading, float craft_heading, float pos_x, float
//abs_heading is the absolute direction/bearing the arrow should point eg bearing to home could be 45 deg
//because arrow is drawn relative to the osd/camera view we need to offset by craft's heading
#if HOME_ARROW_INVERT == true
abs_heading = 360 - abs_heading;
abs_heading = abs_heading - 180;
#endif
float rel_heading = abs_heading - craft_heading; //direction arrow needs to point relative to camera/osd/craft
if (rel_heading < 0) rel_heading += 360;
Expand Down

0 comments on commit 8047bed

Please sign in to comment.