Skip to content

Commit

Permalink
add uptilt to pitch angle
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Apr 8, 2021
1 parent c26a676 commit 33f340f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ static bool osdDrawSingleElement(uint8_t item)
rollAngle = DECIDEGREES_TO_RADIANS(attitude.values.roll);
pitchAngle = DECIDEGREES_TO_RADIANS(attitude.values.pitch);
#endif

pitchAngle -= DEGREES_TO_RADIANS(osdConfig()->camera_uptilt);
if (osdConfig()->ahi_reverse_roll) {
rollAngle = -rollAngle;
}
Expand Down

0 comments on commit 33f340f

Please sign in to comment.