Browse Source

AC_AttitudeControl: add get_att_target_euler_rad function

zr-v5.1
Peter Hall 4 years ago committed by Randy Mackay
parent
commit
a43db51440
  1. 1
      libraries/AC_AttitudeControl/AC_AttitudeControl.h

1
libraries/AC_AttitudeControl/AC_AttitudeControl.h

@ -180,6 +180,7 @@ public: @@ -180,6 +180,7 @@ public:
// **NOTE** Using vector3f*deg(100) is more efficient than deg(vector3f)*100 or deg(vector3d*100) because it gives the
// same result with the fewest multiplications. Even though it may look like a bug, it is intentional. See issue 4895.
Vector3f get_att_target_euler_cd() const { return _attitude_target_euler_angle * degrees(100.0f); }
const Vector3f & get_att_target_euler_rad() const { return _attitude_target_euler_angle; }
// Return the body-to-NED target attitude used by the quadplane-specific attitude control input methods
Quaternion get_attitude_target_quat() const { return _attitude_target_quat; }

Loading…
Cancel
Save