AP: add fake satellite count for hil.

This commit is contained in:
Michael Oborne 2012-06-02 16:34:44 +08:00
parent c82a403b88
commit b4a1b03fd3
1 changed files with 3 additions and 3 deletions

View File

@ -1926,7 +1926,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
// set gps hil sensor // set gps hil sensor
g_gps->setHIL(packet.time_usec/1000.0, g_gps->setHIL(packet.time_usec/1000.0,
packet.lat*1.0e-7, packet.lon*1.0e-7, packet.alt*1.0e-3, 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; break;
} }
#else // MAVLINK10 #else // MAVLINK10
@ -1938,7 +1938,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
// set gps hil sensor // set gps hil sensor
g_gps->setHIL(packet.usec/1000.0,packet.lat,packet.lon,packet.alt, 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; break;
} }
#endif // MAVLINK10 #endif // MAVLINK10
@ -1966,7 +1966,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
// set gps hil sensor // set gps hil sensor
g_gps->setHIL(packet.time_usec/1000.0, g_gps->setHIL(packet.time_usec/1000.0,
packet.lat*1.0e-7, packet.lon*1.0e-7, packet.alt*1.0e-3, 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 #if HIL_MODE == HIL_MODE_SENSORS