mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
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
|
void GCS_MAVLINK::send_local_position(const AP_AHRS &ahrs) const
|
||||||
{
|
{
|
||||||
Vector3f local_position, velocity;
|
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)) {
|
!ahrs.get_velocity_NED(velocity)) {
|
||||||
// we don't know the position and velocity
|
// we don't know the position and velocity
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user