mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Rover: pass fix type to gps->setHIL()
This commit is contained in:
parent
63874dfffd
commit
50f89d0aa6
@ -1816,7 +1816,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
float cog = wrap_360_cd(ToDeg(atan2f(packet.vy, packet.vx)) * 100);
|
float cog = wrap_360_cd(ToDeg(atan2f(packet.vy, packet.vx)) * 100);
|
||||||
|
|
||||||
// set gps hil sensor
|
// 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-7f, packet.lon*1.0e-7f, packet.alt*1.0e-3f,
|
packet.lat*1.0e-7f, packet.lon*1.0e-7f, packet.alt*1.0e-3f,
|
||||||
vel*1.0e-2f, cog*1.0e-2f, 0, 10);
|
vel*1.0e-2f, cog*1.0e-2f, 0, 10);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user