AP_NavEKF3: Restore bug fix lost during rebase

This commit is contained in:
Paul Riseborough 2020-04-21 13:30:46 +10:00 committed by Andrew Tridgell
parent 6952d83f00
commit 9f5e037015
1 changed files with 2 additions and 2 deletions

View File

@ -607,10 +607,10 @@ void NavEKF3_core::send_status_report(mavlink_channel_t chan) const
} else {
temp = 0.0f;
}
const float mag_max = fmaxf(fmaxf(magVar.x,magVar.y),magVar.z);
// send message
mavlink_msg_ekf_status_report_send(chan, flags, velVar, posVar, hgtVar, magVar.length(), temp, tasVar);
mavlink_msg_ekf_status_report_send(chan, flags, velVar, posVar, hgtVar, mag_max, temp, tasVar);
}
// report the reason for why the backend is refusing to initialise