diff --git a/attitude_fw/ecl_controller.cpp b/attitude_fw/ecl_controller.cpp index 213b601838..7c4bc5b5fd 100644 --- a/attitude_fw/ecl_controller.cpp +++ b/attitude_fw/ecl_controller.cpp @@ -119,6 +119,11 @@ float ECL_Controller::get_desired_bodyrate() return _bodyrate_setpoint; } +float ECL_Controller::get_integrator() +{ + return _integrator; +} + float ECL_Controller::constrain_airspeed(float airspeed, float minspeed, float maxspeed) { float airspeed_result = airspeed; diff --git a/attitude_fw/ecl_controller.h b/attitude_fw/ecl_controller.h index fe8909dd63..d9d2413fa9 100644 --- a/attitude_fw/ecl_controller.h +++ b/attitude_fw/ecl_controller.h @@ -97,6 +97,7 @@ public: float get_rate_error(); float get_desired_rate(); float get_desired_bodyrate(); + float get_integrator(); void reset_integrator();