Plane: zero loc structure in HIL_STATE handling

this avoids av AVR bug in HIL
This commit is contained in:
Andrew Tridgell 2014-08-09 22:47:40 +10:00
parent bf0ce79176
commit 0d7d6e1d2a

View File

@ -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;