diff options
-rw-r--r-- | apps/mavlink/mavlink_receiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/mavlink/mavlink_receiver.c b/apps/mavlink/mavlink_receiver.c index 14631d503..a30f0bf3c 100644 --- a/apps/mavlink/mavlink_receiver.c +++ b/apps/mavlink/mavlink_receiver.c @@ -495,7 +495,7 @@ handle_message(mavlink_message_t *msg) hil_gps.vel_e_m_s = (float)gps.vel * 1e-2f * sinf(heading_rad); hil_gps.vel_d_m_s = 0.0f; /* COG (course over ground) is speced as 0..360 degrees (compass) */ - hil_gps.cog_rad = cog_rad + M_PI_F; // from deg*100 to rad + hil_gps.cog_rad = heading_rad + M_PI_F; // from deg*100 to rad hil_gps.fix_type = gps.fix_type; hil_gps.satellites_visible = gps.satellites_visible; |