AP_GPS: fixed GPS yaw for GPS_INPUT mavlink

This commit is contained in:
Andrew Tridgell 2021-05-11 16:26:06 +10:00
parent 4f77f7545a
commit 0cd97ce3d8
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ void AP_GPS_MAV::handle_msg(const mavlink_message_t &msg)
if (have_yaw) {
state.gps_yaw = wrap_360(packet.yaw*0.01);
state.have_gps_yaw = true;
state.gps_yaw_configured = true;
}
if (packet.fix_type >= 3 && packet.time_week > 0) {