From 050f2e6ddbbd85038dfb252512c9a09312e2a870 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Dec 2012 17:38:55 +1100 Subject: [PATCH] Plane: fixed GPS course in HIL --- ArduPlane/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index a5a15de86e..c07a66a238 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -1812,7 +1812,7 @@ mission_failed: mavlink_msg_hil_state_decode(msg, &packet); float vel = sqrt((packet.vx * (float)packet.vx) + (packet.vy * (float)packet.vy)); - float cog = wrap_360_cd(ToDeg(atan2(packet.vx, packet.vy)) * 100); + float cog = wrap_360_cd(ToDeg(atan2(packet.vy, packet.vx)) * 100); // set gps hil sensor g_gps->setHIL(packet.time_usec/1000,