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
7
class
FunctionState
:
public
QGCState
8
{
9
Q_OBJECT
10
Q_DISABLE_COPY(
FunctionState
)
11
12
public
:
13
FunctionState
(
const
QString&
stateName
, QState* parentState, std::function<
void
()>);
14
15
private
:
16
std::function<void()> _function;
17
};
QGCState.h
FunctionState::FunctionState
FunctionState(const QString &stateName, QState *parentState, std::function< void()>)
Executes a function when the state is entered.
Definition
FunctionState.cc:6
QGCAbstractState::stateName
QString stateName() const
Definition
QGCAbstractState.cc:26
QGCState::QGCState
QGCState(const QString &stateName, QState *parentState)
Definition
QGCState.cc:6
src
Utilities
StateMachine
States
FunctionState.h
Generated by
1.15.0