/* Apply PI rate controller and store non-limited output */
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained+_rate_setpoint*k_ff)*scaler*scaler;//scaler is proportional to 1/airspeed
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained)*scaler*scaler;//scaler is proportional to 1/airspeed
/* Apply PI rate controller and store non-limited output */
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained+_rate_setpoint*k_ff)*scaler*scaler;//scaler is proportional to 1/airspeed
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained)*scaler*scaler;//scaler is proportional to 1/airspeed
/* Apply PI rate controller and store non-limited output */
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained+_rate_setpoint*k_ff)*scaler*scaler;//scaler is proportional to 1/airspeed
_last_output=(_bodyrate_setpoint*_k_ff+_rate_error*_k_p+integrator_constrained)*scaler*scaler;//scaler is proportional to 1/airspeed