AC_AttitudeControl: Rename set_yaw_target_to_current_heading

This commit is contained in:
Leonard Hall 2021-05-24 23:11:49 +09:30 committed by Randy Mackay
parent b489dd5fe1
commit 34e342f658
2 changed files with 2 additions and 2 deletions

View File

@ -876,7 +876,7 @@ Vector3f AC_AttitudeControl::euler_accel_limit(const Vector3f &euler_rad, const
}
// Sets yaw target to vehicle heading and sets yaw rate to zero
void AC_AttitudeControl::set_yaw_target_to_current_heading()
void AC_AttitudeControl::reset_yaw_target_and_rate()
{
// move attitude target to current heading
float yaw_shift = _ahrs.yaw - _euler_angle_target.z;

View File

@ -133,7 +133,7 @@ public:
void set_attitude_target_to_current_attitude() { _ahrs.get_quat_body_to_ned(_attitude_target); }
// Sets yaw target to vehicle heading and sets yaw rate to zero
void set_yaw_target_to_current_heading();
void reset_yaw_target_and_rate();
// handle reset of attitude from EKF since the last iteration
void inertial_frame_reset();