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

#include <RallyPointController.h>

+ Inheritance diagram for RallyPointController:
+ Collaboration diagram for RallyPointController:

Signals

void currentRallyPointChanged (QObject *rallyPoint)
 
void loadComplete (void)
 
- Signals inherited from PlanElementController
void supportedChanged (bool supported)
 
void containsItemsChanged ()
 
void syncInProgressChanged (bool syncInProgress)
 
void dirtyChanged (bool dirty)
 
void sendComplete (void)
 
void removeAllComplete (void)
 

Public Member Functions

 RallyPointController (PlanMasterController *masterController, QObject *parent=nullptr)
 
 ~RallyPointController ()
 
Q_INVOKABLE void addPoint (QGeoCoordinate point)
 
Q_INVOKABLE void removePoint (QObject *rallyPoint)
 
void start (bool flyView) final
 Should be called immediately upon Component.onCompleted.
 
bool supported (void) const final
 true: controller is waiting for the current load to complete
 
void save (QJsonObject &json) final
 
bool load (const QJsonObject &json, QString &errorString) final
 
void loadFromVehicle (void) final
 
void sendToVehicle (void) final
 
void removeAll (void) final
 Removes all from controller only.
 
void removeAllFromVehicle (void) final
 
bool syncInProgress (void) const final
 
bool dirty (void) const final
 
void setDirty (bool dirty) final
 
bool containsItems (void) const final
 
bool showPlanFromManagerVehicle (void) final
 
QmlObjectListModelpoints (void)
 
QString editorQml (void) const
 
QObject * currentRallyPoint (void) const
 
void setCurrentRallyPoint (QObject *rallyPoint)
 
bool isEmpty (void) const
 
- Public Member Functions inherited from PlanElementController
 PlanElementController (PlanMasterController *masterController, QObject *parent=nullptr)
 
 ~PlanElementController ()
 true: unsaved/sent changes are present, false: no changes since last save/send
 
PlanMasterControllermasterController (void)
 

Additional Inherited Members

- Protected Attributes inherited from PlanElementController
PlanMasterController_masterController
 
bool _flyView
 

Detailed Description

Definition at line 13 of file RallyPointController.h.

Constructor & Destructor Documentation

◆ RallyPointController()

RallyPointController::RallyPointController ( PlanMasterController masterController,
QObject *  parent = nullptr 
)
explicit

◆ ~RallyPointController()

RallyPointController::~RallyPointController ( )

Definition at line 25 of file RallyPointController.cc.

Member Function Documentation

◆ addPoint()

◆ containsItems()

bool RallyPointController::containsItems ( void  ) const
finalvirtual

◆ currentRallyPoint()

QObject * RallyPointController::currentRallyPoint ( void  ) const
inline

Definition at line 45 of file RallyPointController.h.

◆ currentRallyPointChanged

void RallyPointController::currentRallyPointChanged ( QObject *  rallyPoint)
signal

Referenced by setCurrentRallyPoint().

◆ dirty()

bool RallyPointController::dirty ( void  ) const
inlinefinalvirtual

Implements PlanElementController.

Definition at line 38 of file RallyPointController.h.

Referenced by setDirty().

◆ editorQml()

QString RallyPointController::editorQml ( void  ) const

Definition at line 187 of file RallyPointController.cc.

References RallyPointManager::editorQml().

◆ isEmpty()

bool RallyPointController::isEmpty ( void  ) const

Definition at line 314 of file RallyPointController.cc.

References QmlObjectListModel::count().

Referenced by PlanMasterController::isEmpty().

◆ load()

bool RallyPointController::load ( const QJsonObject &  json,
QString &  errorString 
)
finalvirtual

◆ loadComplete

void RallyPointController::loadComplete ( void  )
signal

◆ loadFromVehicle()

void RallyPointController::loadFromVehicle ( void  )
finalvirtual

◆ points()

QmlObjectListModel * RallyPointController::points ( void  )
inline

Definition at line 43 of file RallyPointController.h.

◆ removeAll()

void RallyPointController::removeAll ( void  )
finalvirtual

Removes all from controller only.

Implements PlanElementController.

Definition at line 127 of file RallyPointController.cc.

References QmlObjectListModel::clearAndDeleteContents(), setCurrentRallyPoint(), and setDirty().

Referenced by load(), and PlanMasterController::removeAll().

◆ removeAllFromVehicle()

void RallyPointController::removeAllFromVehicle ( void  )
finalvirtual

Removes all from vehicle and controller Signals removeAllComplete when done

Implements PlanElementController.

Definition at line 134 of file RallyPointController.cc.

References PlanElementController::_masterController, PlanMasterController::offline(), RallyPointManager::removeAll(), and syncInProgress().

Referenced by PlanMasterController::removeAllFromVehicle().

◆ removePoint()

void RallyPointController::removePoint ( QObject *  rallyPoint)

◆ save()

void RallyPointController::save ( QJsonObject &  json)
finalvirtual

◆ sendToVehicle()

void RallyPointController::sendToVehicle ( void  )
finalvirtual

Sends the current plan element to the vehicle Signals sendComplete when done

Implements PlanElementController.

Definition at line 157 of file RallyPointController.cc.

References PlanElementController::_masterController, QmlObjectListModel::count(), PlanMasterController::offline(), RallyPointManager::sendToVehicle(), setDirty(), and syncInProgress().

◆ setCurrentRallyPoint()

void RallyPointController::setCurrentRallyPoint ( QObject *  rallyPoint)

Definition at line 272 of file RallyPointController.cc.

References currentRallyPointChanged().

Referenced by addPoint(), removeAll(), and removePoint().

◆ setDirty()

void RallyPointController::setDirty ( bool  dirty)
finalvirtual

◆ showPlanFromManagerVehicle()

bool RallyPointController::showPlanFromManagerVehicle ( void  )
finalvirtual

◆ start()

void RallyPointController::start ( bool  flyView)
finalvirtual

◆ supported()

bool RallyPointController::supported ( void  ) const
finalvirtual

true: controller is waiting for the current load to complete

Implements PlanElementController.

Definition at line 248 of file RallyPointController.cc.

References Vehicle::capabilityBits().

Referenced by PlanMasterController::removeAllFromVehicle().

◆ syncInProgress()

bool RallyPointController::syncInProgress ( void  ) const
finalvirtual

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