GCS_MAVLink: send primary quat in ATTITUDE_QUATERNION

This commit is contained in:
Peter Barker 2021-07-23 12:56:14 +10:00 committed by Andrew Tridgell
parent 909decc5be
commit ad89e9777c

View File

@ -4648,7 +4648,7 @@ void GCS_MAVLINK::send_attitude_quaternion() const
{
const AP_AHRS &ahrs = AP::ahrs();
Quaternion quat;
if (!ahrs.get_secondary_quaternion(quat)) {
if (!ahrs.get_quaternion(quat)) {
return;
}
const Vector3f omega = ahrs.get_gyro();