From 95dd252f29ec27949435fb5b7861e1fffaecd779 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 25 Feb 2014 21:11:15 +1100 Subject: [PATCH] Plane: pass fix type to gps->setHIL() --- ArduPlane/GCS_Mavlink.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 9920d9060d..30b3d4e343 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -2123,7 +2123,8 @@ mission_failed: if (g_gps != NULL) { // set gps hil sensor - g_gps->setHIL(packet.time_usec/1000, + g_gps->setHIL(GPS::FIX_3D, + packet.time_usec/1000, packet.lat*1.0e-7, packet.lon*1.0e-7, packet.alt*1.0e-3, vel*1.0e-2, cog*1.0e-2, 0, 10); }