|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <InternalTransition.h>
Inheritance diagram for InternalTransition:
Collaboration diagram for InternalTransition:Public Types | |
| using | Action = std::function< void()> |
Public Member Functions | |
| template<typename Func > | |
| InternalTransition (const typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signalFn, Action action=nullptr) | |
Public Member Functions inherited from QGCSignalTransition | |
| QGCSignalTransition (QState *sourceState=nullptr) | |
| QGCSignalTransition (const QObject *sender, const char *signal, QState *sourceState=nullptr) | |
| template<typename Func > | |
| QGCSignalTransition (const typename QtPrivate::FunctionPointer< Func >::Object *sender, Func signalFn, QState *sourceState=nullptr) | |
| QGCStateMachine * | machine () const |
| Get the QGCStateMachine this transition belongs to. | |
| Vehicle * | vehicle () const |
| Get the Vehicle associated with the state machine. | |
Protected Member Functions | |
| void | onTransition (QEvent *event) override |
Transition that fires without exiting/re-entering the current state Useful for handling repeated signals (like heartbeats) without state churn. The action is executed but no state exit/entry occurs.
Definition at line 10 of file InternalTransition.h.
| using InternalTransition::Action = std::function<void()> |
Definition at line 16 of file InternalTransition.h.
|
inline |
Create an internal transition with an action
| sender | The object that emits the signal |
| signal | The signal to listen for |
| action | Function to execute when transition fires (optional) |
Definition at line 23 of file InternalTransition.h.
|
overrideprotected |
Definition at line 4 of file InternalTransition.cc.