mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 16:00:37 +08:00
control_allocator: remove min/max/scale params
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user