mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 17:10:35 +08:00
fix(control_allocator): Apply stopped motors before slew
So transitions between stopped/not stopped respect the slew rate. - Remove previous stopped motor handling in publish_actuator_controls - Replace with handle_stopped_motors, called in Run() before slew - Introduce ApplyNanToActuators in ControlAllocation to stop - Refactor ice shedding slightly to fit new structure
This commit is contained in:
@@ -145,7 +145,9 @@ private:
|
||||
|
||||
void publish_actuator_controls();
|
||||
|
||||
float get_ice_shedding_output(hrt_abstime now, bool any_stopped_motor_failed);
|
||||
void handle_stopped_motors(const hrt_abstime now);
|
||||
|
||||
float get_ice_shedding_output(hrt_abstime now);
|
||||
|
||||
AllocationMethod _allocation_method_id{AllocationMethod::NONE};
|
||||
ControlAllocation *_control_allocation[ActuatorEffectiveness::MAX_NUM_MATRICES] {}; ///< class for control allocation calculations
|
||||
|
||||
Reference in New Issue
Block a user