Skip to content

Commit ce231f8

Browse files
lthallrmackay9
authored andcommitted
AC_AttitudeControl: Add missing conts
1 parent 23f6063 commit ce231f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/AC_AttitudeControl/AC_AttitudeControl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ void AC_AttitudeControl::input_thrust_vector_heading_cd(const Vector3f& thrust_v
760760
const float slew_yaw_max_rads = get_slew_yaw_max_rads();
761761

762762
// Convert from centidegrees on public interface to radians
763-
float heading_rate_rads = constrain_float(cd_to_rad(heading_rate_cds), -slew_yaw_max_rads, slew_yaw_max_rads);
764-
float heading_angle_rad = cd_to_rad(heading_angle_cd);
763+
const float heading_rate_rads = constrain_float(cd_to_rad(heading_rate_cds), -slew_yaw_max_rads, slew_yaw_max_rads);
764+
const float heading_angle_rad = cd_to_rad(heading_angle_cd);
765765

766766
// update attitude target
767767
update_attitude_target();

0 commit comments

Comments
 (0)