|
|
|
@ -56,7 +56,7 @@ class FlightTask : public control::Block
@@ -56,7 +56,7 @@ class FlightTask : public control::Block
|
|
|
|
|
public: |
|
|
|
|
FlightTask(control::SuperBlock *parent, const char *name) : |
|
|
|
|
Block(parent, name) |
|
|
|
|
{ } |
|
|
|
|
{ _resetSetpoint(); } |
|
|
|
|
|
|
|
|
|
virtual ~FlightTask() = default; |
|
|
|
|
|
|
|
|
@ -99,6 +99,8 @@ public:
@@ -99,6 +99,8 @@ public:
|
|
|
|
|
return _vehicle_local_position_setpoint; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static constexpr vehicle_local_position_setpoint_s empty_setpoint = {0, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN}; |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
/* Time abstraction */ |
|
|
|
|
static constexpr uint64_t _timeout = 500000; /**< maximal time in us before a loop or data times out */ |
|
|
|
@ -134,5 +136,7 @@ private:
@@ -134,5 +136,7 @@ private:
|
|
|
|
|
|
|
|
|
|
vehicle_local_position_setpoint_s _vehicle_local_position_setpoint; /**< Output position setpoint that every task has */ |
|
|
|
|
|
|
|
|
|
void _resetSetpoint() { _vehicle_local_position_setpoint = empty_setpoint; } |
|
|
|
|
|
|
|
|
|
bool _evaluate_vehicle_position(); |
|
|
|
|
}; |
|
|
|
|