mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
GCS_Common: send_local_position uses offset from origin
This commit is contained in:
parent
56e44c46ca
commit
80e2dbc9f2
@ -2271,7 +2271,7 @@ void GCS_MAVLINK::send_local_position() const
|
||||
const AP_AHRS &ahrs = AP::ahrs();
|
||||
|
||||
Vector3f local_position, velocity;
|
||||
if (!ahrs.get_relative_position_NED_home(local_position) ||
|
||||
if (!ahrs.get_relative_position_NED_origin(local_position) ||
|
||||
!ahrs.get_velocity_NED(velocity)) {
|
||||
// we don't know the position and velocity
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user