Skip to content

Commit fbce66e

Browse files
peterbarkertridge
authored andcommitted
AP_OSD: use get_roll_deg in place of roll_sensor (etc.)
1 parent a86fa8b commit fbce66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_OSD/AP_OSD_Screen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ void AP_OSD_Screen::draw_home(uint8_t x, uint8_t y)
18031803
void AP_OSD_Screen::draw_heading(uint8_t x, uint8_t y)
18041804
{
18051805
AP_AHRS &ahrs = AP::ahrs();
1806-
uint16_t yaw = ahrs.yaw_sensor / 100;
1806+
uint16_t yaw = ahrs.get_yaw_deg();
18071807
backend->write(x, y, false, "%3d%c", yaw, SYMBOL(SYM_DEGR));
18081808
}
18091809

0 commit comments

Comments
 (0)