mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
multirotor mixer slew rate limiting: naming and fixes
- avoid dividing by zero when calculating max delta output - better comments when calculating max delta output - better naming of functions and variables Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -201,12 +201,12 @@ MixerGroup::load_from_buf(const char *buf, unsigned &buflen)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void MixerGroup::update_slew_rate(float slew_rate_max)
|
||||
void MixerGroup::set_max_delta_out_once(float delta_out_max)
|
||||
{
|
||||
Mixer *mixer = _first;
|
||||
|
||||
while (mixer != nullptr) {
|
||||
mixer->update_slew_rate(slew_rate_max);
|
||||
mixer->set_max_delta_out_once(delta_out_max);
|
||||
mixer = mixer->_next;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user