Plane: zero loc structure in HIL_STATE handling
this avoids av AVR bug in HIL
This commit is contained in:
parent
bf0ce79176
commit
0d7d6e1d2a
@ -1392,6 +1392,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
|
||||
// set gps hil sensor
|
||||
Location loc;
|
||||
memset(&loc, 0, sizeof(loc));
|
||||
loc.lat = packet.lat;
|
||||
loc.lng = packet.lon;
|
||||
loc.alt = packet.alt/10;
|
||||
|
Loading…
Reference in New Issue
Block a user