GCS_MAVLink: Update for AHRS NED changes

This commit is contained in:
Michael du Breuil 2017-01-30 12:08:07 -07:00 committed by Andrew Tridgell
parent 666c63da9f
commit 50346de963

View File

@ -1595,7 +1595,7 @@ void GCS_MAVLINK::send_autopilot_version(uint8_t major_version, uint8_t minor_ve
void GCS_MAVLINK::send_local_position(const AP_AHRS &ahrs) const
{
Vector3f local_position, velocity;
if (!ahrs.get_relative_position_NED(local_position) ||
if (!ahrs.get_relative_position_NED_home(local_position) ||
!ahrs.get_velocity_NED(velocity)) {
// we don't know the position and velocity
return;