diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp b/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp index 0b37b8d59a..b309bbfe16 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.cpp @@ -1037,7 +1037,7 @@ Vector3f AC_AttitudeControl::update_ang_vel_target_from_att_error(const Vector3f rate_target_ang_vel.z = angleP_yaw * attitude_error_rot_vec_rad.z; } - // reset angle P scaling, saving used value for logging + // reset angle P scaling, saving used value _angle_P_scale_used = _angle_P_scale; _angle_P_scale = VECTORF_111; diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.h b/libraries/AC_AttitudeControl/AC_AttitudeControl.h index a035d3e31b..a08dedda08 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.h +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.h @@ -395,8 +395,8 @@ public: // purposes void set_angle_P_scale_mult(const Vector3f &angle_P_scale) { _angle_P_scale *= angle_P_scale; } - // get the value of the angle P scale that was used in the last loop, for logging - const Vector3f &get_angle_P_scale_logging(void) const { return _angle_P_scale_used; } + // get the value of the angle P scale that was used in the last loop + const Vector3f &get_last_angle_P_scale(void) const { return _angle_P_scale_used; } // setup a one loop PD scale multiplier, multiplying by any // previously applied scale from this loop. This allows for more @@ -531,7 +531,7 @@ protected: // angle P scaling vector for roll, pitch, yaw Vector3f _angle_P_scale{1,1,1}; - // angle scale used for last loop, used for logging + // angle scale used for last loop, used for logging and quadplane angle P scaling Vector3f _angle_P_scale_used; // PD scaling vector for roll, pitch, yaw