control_allocator: change SequentialDesaturation to existing MC mixer

And limit the operations to the number of configured outputs.

Only using the number of configured actuators reduces CPU load by ~2% on
F7 @1khz.
This commit is contained in:
Beat Küng
2021-01-18 11:25:37 -05:00
committed by Daniel Agar
parent 308f614735
commit 0e66b0876b
12 changed files with 259 additions and 82 deletions
@@ -58,6 +58,7 @@ public:
*/
void setFlightPhase(const FlightPhase &flight_phase) override;
int numActuators() const override { return 7; }
protected:
bool _updated{true};
};