QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FunctionState.h
Go to the documentation of this file.
1#pragma once
2
3#include "QGCState.h"
4
5#include <functional>
6
7class FunctionState : public QGCState
8{
9 Q_OBJECT
10 Q_DISABLE_COPY(FunctionState)
11
12public:
13 FunctionState(const QString& stateName, QState* parentState, std::function<void()>);
14
15private:
16 std::function<void()> _function;
17};
FunctionState(const QString &stateName, QState *parentState, std::function< void()>)
Executes a function when the state is entered.
QString stateName() const
QGCState(const QString &stateName, QState *parentState)
Definition QGCState.cc:6