mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 02:51:37 +08:00
refactor control_allocator: directly get the effectiveness matrix when updated
Reduces stack + RAM usage
This commit is contained in:
+2
-7
@@ -49,12 +49,7 @@ public:
|
||||
ActuatorEffectivenessStandardVTOL();
|
||||
virtual ~ActuatorEffectivenessStandardVTOL() = default;
|
||||
|
||||
/**
|
||||
* Update effectiveness matrix
|
||||
*
|
||||
* @return True if the effectiveness matrix has changed
|
||||
*/
|
||||
virtual bool update() override;
|
||||
bool getEffectivenessMatrix(matrix::Matrix<float, NUM_AXES, NUM_ACTUATORS> &matrix) override;
|
||||
|
||||
/**
|
||||
* Set the current flight phase
|
||||
@@ -64,5 +59,5 @@ public:
|
||||
void setFlightPhase(const FlightPhase &flight_phase) override;
|
||||
|
||||
protected:
|
||||
bool _updated{false};
|
||||
bool _updated{true};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user