AP_GPS: Correct HIL_GPS altitude conversion

This commit is contained in:
Michael du Breuil 2018-04-02 17:07:53 -07:00 committed by WickedShell
parent c05d239069
commit a21eb12f9e

View File

@ -122,7 +122,7 @@ void AP_GPS_MAV::handle_msg(const mavlink_message_t *msg)
Location loc = {};
loc.lat = packet.lat;
loc.lng = packet.lon;
loc.alt = packet.alt;
loc.alt = packet.alt * 0.1f;
state.location = loc;
state.location.options = 0;
state.hdop = MIN(packet.eph, GPS_UNKNOWN_DOP);