forked from Archive/PX4-Autopilot
ControlAllocation: remove actuator trim value from actuator_sp to calculate allocated control
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
4520186878
commit
6db92b4011
|
@ -143,7 +143,7 @@ public:
|
||||||
* @return Control vector
|
* @return Control vector
|
||||||
*/
|
*/
|
||||||
matrix::Vector<float, NUM_AXES> getAllocatedControl() const
|
matrix::Vector<float, NUM_AXES> getAllocatedControl() const
|
||||||
{ return (_effectiveness * _actuator_sp).emult(_control_allocation_scale); }
|
{ return (_effectiveness * (_actuator_sp - _actuator_trim)).emult(_control_allocation_scale); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the control effectiveness matrix
|
* Get the control effectiveness matrix
|
||||||
|
|
Loading…
Reference in New Issue