AC_PrecLand: fixes

This commit is contained in:
Peter Barker 2021-07-21 18:10:27 +10:00 committed by Peter Barker
parent 6aba6c83c6
commit 63015e9e9a
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ void AC_PrecLand::update(float rangefinder_alt_cm, bool rangefinder_alt_valid)
// append current velocity and attitude correction into history buffer
struct inertial_data_frame_s inertial_data_newest;
const AP_AHRS &_ahrs = AP::ahrs();
const auto &_ahrs = AP::ahrs();
_ahrs.getCorrectedDeltaVelocityNED(inertial_data_newest.correctedVehicleDeltaVelocityNED, inertial_data_newest.dt);
inertial_data_newest.Tbn = _ahrs.get_rotation_body_to_ned();
Vector3f curr_vel;