GCS_MAVLink: Update for AHRS NED changes
This commit is contained in:
parent
666c63da9f
commit
50346de963
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user