Plane: fixed GPS course in HIL

This commit is contained in:
Andrew Tridgell 2012-12-03 17:38:55 +11:00
parent cd19cb6cc2
commit 050f2e6ddb
1 changed files with 1 additions and 1 deletions

View File

@ -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,