mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 17:43:34 +08:00
attitude_fw: move angular rate limits to body angular rates (#404)
This commit is contained in:
committed by
Daniel Agar
parent
78e983073a
commit
041886a289
@@ -104,6 +104,11 @@ void ECL_Controller::set_max_rate(float max_rate)
|
||||
_max_rate = max_rate;
|
||||
}
|
||||
|
||||
void ECL_Controller::set_bodyrate_setpoint(float rate)
|
||||
{
|
||||
_bodyrate_setpoint = math::constrain(rate, -_max_rate, _max_rate);
|
||||
}
|
||||
|
||||
float ECL_Controller::get_rate_error()
|
||||
{
|
||||
return _rate_error;
|
||||
|
||||
Reference in New Issue
Block a user