control_allocator: remove min/max/scale params

This commit is contained in:
Beat Küng
2021-11-11 11:39:40 +01:00
committed by Daniel Agar
parent b29d9db7f1
commit 2809dd8944
10 changed files with 24 additions and 463 deletions
@@ -41,6 +41,13 @@
#include "ControlAllocation.hpp"
ControlAllocation::ControlAllocation()
{
_control_allocation_scale.setAll(1.f);
_actuator_min.setAll(0.f);
_actuator_max.setAll(1.f);
}
void
ControlAllocation::setEffectivenessMatrix(
const matrix::Matrix<float, ControlAllocation::NUM_AXES, ControlAllocation::NUM_ACTUATORS> &effectiveness,
@@ -74,7 +74,7 @@
class ControlAllocation
{
public:
ControlAllocation() { _control_allocation_scale.setAll(1.f); }
ControlAllocation();
virtual ~ControlAllocation() = default;
static constexpr uint8_t NUM_ACTUATORS = 16;