From b4a1b03fd368f485cd6f530c84c266a9995f9e56 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Sat, 2 Jun 2012 16:34:44 +0800 Subject: [PATCH] AP: add fake satellite count for hil. --- ArduPlane/GCS_Mavlink.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index 8002d0fdb4..eb47838cea 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -1926,7 +1926,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) // set gps hil sensor g_gps->setHIL(packet.time_usec/1000.0, packet.lat*1.0e-7, packet.lon*1.0e-7, packet.alt*1.0e-3, - packet.vel*1.0e-2, packet.cog*1.0e-2, 0, 0); + packet.vel*1.0e-2, packet.cog*1.0e-2, 0, 10); break; } #else // MAVLINK10 @@ -1938,7 +1938,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) // set gps hil sensor g_gps->setHIL(packet.usec/1000.0,packet.lat,packet.lon,packet.alt, - packet.v,packet.hdg,0,0); + packet.v,packet.hdg,0,10); break; } #endif // MAVLINK10 @@ -1966,7 +1966,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) // set gps hil sensor g_gps->setHIL(packet.time_usec/1000.0, packet.lat*1.0e-7, packet.lon*1.0e-7, packet.alt*1.0e-3, - vel*1.0e-2, cog*1.0e-2, 0, 0); + vel*1.0e-2, cog*1.0e-2, 0, 10); #if HIL_MODE == HIL_MODE_SENSORS