Plane: use enum class for AltFrame enumeration

This commit is contained in:
Peter Barker 2019-03-15 12:44:48 +11:00 committed by Andrew Tridgell
parent 366051c39f
commit f940564f2b

View File

@ -1124,7 +1124,7 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
last_hil_state = packet;
// set gps hil sensor
const Location loc{packet.lat, packet.lon, packet.alt/10, Location::ALT_FRAME_ABSOLUTE};
const Location loc{packet.lat, packet.lon, packet.alt/10, Location::AltFrame::ABSOLUTE};
Vector3f vel(packet.vx, packet.vy, packet.vz);
vel *= 0.01f;