QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
InitialConnectStateMachine Class Reference

#include <InitialConnectStateMachine.h>

+ Inheritance diagram for InitialConnectStateMachine:
+ Collaboration diagram for InitialConnectStateMachine:

Public Member Functions

 InitialConnectStateMachine (Vehicle *vehicle, QObject *parent=nullptr)
 
 ~InitialConnectStateMachine () override
 
void start ()
 

Additional Inherited Members

- Public Slots inherited from QGCStateMachine
void start ()
 Start the state machine with debug logging.
 
- Signals inherited from QGCStateMachine
void error ()
 
void progressUpdate (float progress)
 
void machineEvent (const QString &eventName)
 
void currentStateNameChanged ()
 Emitted when the current state changes (for QML binding)
 
void runningChanged ()
 Emitted when the running state changes (for QML binding)
 
void stateHistoryChanged ()
 Emitted when the state history changes (for QML binding)
 
- Protected Member Functions inherited from QGCStateMachine
virtual void onEnter ()
 Override to perform actions when machine starts.
 
virtual void onLeave ()
 Override to perform actions when machine stops.
 
void onEntry (QEvent *event) override
 
void onExit (QEvent *event) override
 
bool event (QEvent *event) override
 

Detailed Description

State machine for initial vehicle connection sequence. Handles requesting autopilot version, standard modes, component info, parameters, missions, geofence, and rally points in sequence.

Uses QGCStateMachine's built-in weighted progress tracking where different states contribute different amounts to the overall progress (e.g., parameter loading takes longer than version request).

Definition at line 23 of file InitialConnectStateMachine.h.

Constructor & Destructor Documentation

◆ InitialConnectStateMachine()

InitialConnectStateMachine::InitialConnectStateMachine ( Vehicle vehicle,
QObject *  parent = nullptr 
)
explicit

Definition at line 22 of file InitialConnectStateMachine.cc.

◆ ~InitialConnectStateMachine()

InitialConnectStateMachine::~InitialConnectStateMachine ( )
override

Definition at line 33 of file InitialConnectStateMachine.cc.

Member Function Documentation

◆ start()

void InitialConnectStateMachine::start ( )

Definition at line 37 of file InitialConnectStateMachine.cc.

References QGCStateMachine::start().

Referenced by Vehicle::Vehicle().


The documentation for this class was generated from the following files: