mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:31:36 +08:00
flight tasks: use placement new to reduce memory overhead and the need for dynamic allocations
In addition, we will need some shared data structure for the uorb subscriptions.
This commit is contained in:
@@ -46,13 +46,10 @@
|
||||
class FlightTaskOrbit : public FlightTaskManual
|
||||
{
|
||||
public:
|
||||
FlightTaskOrbit(SuperBlock *parent, const char *name) :
|
||||
FlightTaskManual(parent, name)
|
||||
{};
|
||||
virtual ~FlightTaskOrbit() {};
|
||||
FlightTaskOrbit(SuperBlock *parent, const char *name);
|
||||
|
||||
virtual ~FlightTaskOrbit() = default;
|
||||
|
||||
int activate() override;
|
||||
int disable() override;
|
||||
int update() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user