ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AC_AttitudeControl: Add conversions from cd to rad

Open lthall opened this issue 7 months ago • 2 comments

This PR adds radian (_rad, _rads) variants of all input_XXX rate and attitude commands in AC_AttitudeControl. These functions mirror the existing centidegree-based (_cd, _cds) methods, enabling direct use of SI units or the addition of degrees.

This does add size:

After AC_AttitudeControl: Add conversions from cd to rad

Board,blimp,bootloader,copter,heli,plane,rover,sub
CubeOrange,*,*,-64,-32,24,*,-48

lthall avatar May 20 '25 12:05 lthall

instead of using "* radians(0.01)" I'd prefer we create a new method called something like, "radians_from_cd(x)"

rmackay9 avatar May 26 '25 03:05 rmackay9

@rmackay9 maybe cd_to_rad() ?

tridge avatar May 26 '25 23:05 tridge