From 299b3ef2009f1e5a43b394e826dce7d445d30fc6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 25 Jul 2021 14:02:16 +1000 Subject: [PATCH] AP_Periph: fixed msp gps yaw build failed with 10.2 compiler, but is a real bug --- Tools/AP_Periph/msp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Periph/msp.cpp b/Tools/AP_Periph/msp.cpp index 07f5ac0c09..9ebd56f663 100644 --- a/Tools/AP_Periph/msp.cpp +++ b/Tools/AP_Periph/msp.cpp @@ -101,7 +101,8 @@ void AP_Periph_FW::send_msp_GPS(void) p.ned_vel_down = vel.z*100; p.ground_course = wrap_360_cd(gps.ground_course(0)*100); float yaw_deg=0, acc; - if (gps.gps_yaw_deg(0, yaw_deg, acc)) { + uint32_t time_ms; + if (gps.gps_yaw_deg(0, yaw_deg, acc, time_ms)) { p.true_yaw = wrap_360_cd(yaw_deg*100); } else { p.true_yaw = 65535; // unknown