mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Plane: pass fix type to gps->setHIL()
This commit is contained in:
parent
2fcbdc4056
commit
95dd252f29
@ -2123,7 +2123,8 @@ mission_failed:
|
|||||||
|
|
||||||
if (g_gps != NULL) {
|
if (g_gps != NULL) {
|
||||||
// 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-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, 10);
|
vel*1.0e-2, cog*1.0e-2, 0, 10);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user