Skip to content

Commit

Permalink
AC_AttitudeControl: add accessors to set rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer committed May 20, 2024
1 parent 0442da8 commit f69e079
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions libraries/AC_AttitudeControl/AC_AttitudeControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,27 @@ class AC_AttitudeControl {

// get the roll angular velocity limit in radians/s
float get_ang_vel_roll_max_rads() const { return radians(_ang_vel_roll_max); }
// get the roll angular velocity limit in degrees/s
float get_ang_vel_roll_max_degs() const { return _ang_vel_roll_max; }

// set the roll angular velocity limit in degrees/s
void set_ang_vel_roll_max_degs(float vel_roll_max) { _ang_vel_roll_max.set(vel_roll_max); }

// get the pitch angular velocity limit in radians/s
float get_ang_vel_pitch_max_rads() const { return radians(_ang_vel_pitch_max); }
// get the pitch angular velocity limit in degrees/s
float get_ang_vel_pitch_max_degs() const { return _ang_vel_pitch_max; }

// set the pitch angular velocity limit in degrees/s
void set_ang_vel_pitch_max_degs(float vel_pitch_max) { _ang_vel_pitch_max.set(vel_pitch_max); }

// get the yaw angular velocity limit in radians/s
float get_ang_vel_yaw_max_rads() const { return radians(_ang_vel_yaw_max); }
// get the yaw angular velocity limit in degrees/s
float get_ang_vel_yaw_max_degs() const { return _ang_vel_yaw_max; }

// set the yaw angular velocity limit in degrees/s
void set_ang_vel_yaw_max_degs(float vel_yaw_max) { _ang_vel_yaw_max.set(vel_yaw_max); }

// get the slew yaw rate limit in deg/s
float get_slew_yaw_max_degs() const;
Expand Down

0 comments on commit f69e079

Please sign in to comment.