From cfc388934b3d252f45fd483a4fa555c4b4941857 Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Fri, 5 Jun 2015 17:51:56 +0930 Subject: [PATCH] AC_AttControl: add set_accel_roll_max Also equivalents for pitch and yaw --- libraries/AC_AttitudeControl/AC_AttitudeControl.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/AC_AttitudeControl/AC_AttitudeControl.h b/libraries/AC_AttitudeControl/AC_AttitudeControl.h index 898ddfffda..cc86b0dc13 100644 --- a/libraries/AC_AttitudeControl/AC_AttitudeControl.h +++ b/libraries/AC_AttitudeControl/AC_AttitudeControl.h @@ -81,18 +81,27 @@ public: // get_accel_roll_max - gets the roll acceleration limit float get_accel_roll_max() { return _accel_roll_max; } + // set_accel_roll_max - sets the roll acceleration limit + void set_accel_roll_max(float accel_roll_max) { _accel_roll_max = accel_roll_max; } + // save_accel_roll_max - sets and saves the roll acceleration limit void save_accel_roll_max(float accel_roll_max) { _accel_roll_max = accel_roll_max; _accel_roll_max.save(); } // get_accel_pitch_max - gets the pitch acceleration limit float get_accel_pitch_max() { return _accel_pitch_max; } + // set_accel_pitch_max - sets the pitch acceleration limit + void set_accel_pitch_max(float accel_pitch_max) { _accel_pitch_max = accel_pitch_max; } + // save_accel_pitch_max - sets and saves the pitch acceleration limit void save_accel_pitch_max(float accel_pitch_max) { _accel_pitch_max = accel_pitch_max; _accel_pitch_max.save(); } // get_accel_yaw_max - gets the yaw acceleration limit float get_accel_yaw_max() { return _accel_yaw_max; } + // set_accel_yaw_max - sets the yaw acceleration limit + void set_accel_yaw_max(float accel_yaw_max) { _accel_yaw_max = accel_yaw_max; } + // save_accel_yaw_max - sets and saves the yaw acceleration limit void save_accel_yaw_max(float accel_yaw_max) { _accel_yaw_max = accel_yaw_max; _accel_yaw_max.save(); }