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:
Beat Küng
2018-04-05 07:30:12 +02:00
parent 99eb051c0f
commit b5ecf9824d
6 changed files with 86 additions and 96 deletions
@@ -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: