Browse Source

Provide access to FW integrators

master
Andreas Antener 7 years ago committed by Lorenz Meier
parent
commit
ee57908911
  1. 5
      attitude_fw/ecl_controller.cpp
  2. 1
      attitude_fw/ecl_controller.h

5
attitude_fw/ecl_controller.cpp

@ -119,6 +119,11 @@ float ECL_Controller::get_desired_bodyrate() @@ -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;

1
attitude_fw/ecl_controller.h

@ -97,6 +97,7 @@ public: @@ -97,6 +97,7 @@ public:
float get_rate_error();
float get_desired_rate();
float get_desired_bodyrate();
float get_integrator();
void reset_integrator();

Loading…
Cancel
Save