AP_Landing: make AHRS attitude member variables private

This commit is contained in:
Peter Barker 2024-01-12 23:40:22 +11:00 committed by Peter Barker
parent 91fbe46466
commit c821726bf4
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ float AP_Landing_Deepstall::update_steering()
L1_xtrack_i = constrain_float(L1_xtrack_i, -0.5f, 0.5f);
nu1 += L1_xtrack_i;
}
desired_change = wrap_PI(radians(target_heading_deg) + nu1 - landing.ahrs.yaw) / time_constant;
desired_change = wrap_PI(radians(target_heading_deg) + nu1 - landing.ahrs.get_yaw()) / time_constant;
}
float yaw_rate = landing.ahrs.get_gyro().z;