AP_Avoidance: adjust for location flags being moved out of union

This commit is contained in:
Peter Barker 2019-01-02 10:59:26 +11:00 committed by Peter Barker
parent b416bc603e
commit 8dfdda1cf0
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ void AP_Avoidance::handle_msg(const mavlink_message_t &msg)
loc.lat = packet.lat;
loc.lng = packet.lon;
loc.alt = packet.alt / 10; // mm -> cm
loc.flags.relative_alt = false;
loc.relative_alt = false;
Vector3f vel = Vector3f(packet.vx/100.0f, // cm to m
packet.vy/100.0f,
packet.vz/100.0f);