|
QGroundControl
Ground Control Station for MAVLink Drones
|
MAVLink micro air vehicle protocol reference implementation. More...
#include <MAVLinkProtocol.h>
Inheritance diagram for MAVLinkProtocol:
Collaboration diagram for MAVLinkProtocol:Public Slots | |
| void | receiveBytes (LinkInterface *link, const QByteArray &data) |
| void | logSentBytes (const LinkInterface *link, const QByteArray &data) |
| static void | deleteTempLogFiles () |
Signals | |
| void | vehicleHeartbeatInfo (LinkInterface *link, int vehicleId, int componentId, int vehicleFirmwareType, int vehicleType) |
| void | messageReceived (LinkInterface *link, const mavlink_message_t &message) |
| void | mavlinkMessageStatus (int sysid, uint64_t totalSent, uint64_t totalReceived, uint64_t totalLoss, float lossPercent) |
Public Member Functions | |
| MAVLinkProtocol (QObject *parent=nullptr) | |
| ~MAVLinkProtocol () | |
| void | init () |
| int | getSystemId () const |
| void | resetMetadataForLink (LinkInterface *link) |
| void | resetSequenceTracking (LinkInterface *link) |
| Reset sequence tracking so signing transitions don't inflate loss counters. | |
| void | suspendLogForReplay (bool suspend) |
| void | checkForLostLogFiles () |
Static Public Member Functions | |
| static MAVLinkProtocol * | instance () |
| static QString | getName () |
| static int | getComponentId () |
MAVLink micro air vehicle protocol reference implementation.
Definition at line 17 of file MAVLinkProtocol.h.
|
explicit |
Definition at line 31 of file MAVLinkProtocol.cc.
| MAVLinkProtocol::~MAVLinkProtocol | ( | ) |
Definition at line 36 of file MAVLinkProtocol.cc.
| void MAVLinkProtocol::checkForLostLogFiles | ( | ) |
Definition at line 382 of file MAVLinkProtocol.cc.
|
staticslot |
Definition at line 401 of file MAVLinkProtocol.cc.
|
inlinestatic |
Definition at line 34 of file MAVLinkProtocol.h.
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), GimbalController::acquireGimbalControl(), Vehicle::clearAllParamMapRC(), OnboardLogController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), APMSensorsComponentController::nextClicked(), QGCCameraParamIO::paramRequest(), Vehicle::requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), Vehicle::sendJoystickAuxRcOverrideThreadSafe(), Vehicle::sendJoystickDataThreadSafe(), Vehicle::sendParamMapRC(), Vehicle::setCurrentMissionSequence(), Vehicle::setEstimatorOrigin(), Vehicle::setFlightMode(), Vehicle::startCalibration(), and MissionManager::writeArduPilotGuidedMissionItem().
|
inlinestatic |
Definition at line 30 of file MAVLinkProtocol.h.
Referenced by logSentBytes().
| int MAVLinkProtocol::getSystemId | ( | ) | const |
Definition at line 524 of file MAVLinkProtocol.cc.
References SettingsManager::instance(), and SettingsManager::mavlinkSettings().
Referenced by GimbalController::acquireGimbalControl(), OnboardLogController::eraseAll(), APMSensorsComponentController::nextClicked(), QGCCameraParamIO::paramRequest(), and APMFirmwarePlugin::sendGCSMotionReport().
| void MAVLinkProtocol::init | ( | ) |
Definition at line 48 of file MAVLinkProtocol.cc.
References MultiVehicleManager::instance(), and MultiVehicleManager::vehicleRemoved().
|
static |
Definition at line 43 of file MAVLinkProtocol.cc.
Referenced by PlanManager::_handleMissionRequest(), PlanManager::_readTransactionComplete(), PlanManager::_removeAllWorker(), VehicleCameraControl::_requestAllParameters(), PlanManager::_requestList(), PlanManager::_requestNextMissionItem(), PlanManager::_writeMissionCount(), GimbalController::acquireGimbalControl(), Vehicle::clearAllParamMapRC(), LinkManager::createConnectedLink(), OnboardLogController::eraseAll(), APMFirmwarePlugin::guidedModeChangeAltitude(), MultiVehicleManager::init(), MAVLinkInspectorController::MAVLinkInspectorController(), APMSensorsComponentController::nextClicked(), QGCCameraParamIO::paramRequest(), LogReplayWorker::pause(), LogReplayWorker::play(), Vehicle::requestDataStream(), APMFirmwarePlugin::sendGCSMotionReport(), FirmwarePlugin::sendGCSMotionReport(), Vehicle::sendJoystickAuxRcOverrideThreadSafe(), Vehicle::sendJoystickDataThreadSafe(), Vehicle::sendParamMapRC(), Vehicle::setCurrentMissionSequence(), Vehicle::setEstimatorOrigin(), Vehicle::setFlightMode(), Vehicle::startCalibration(), Vehicle::startTimerRevertAllowTakeover(), Vehicle::Vehicle(), and MissionManager::writeArduPilotGuidedMissionItem().
|
slot |
Definition at line 78 of file MAVLinkProtocol.cc.
References getName(), and QGC::showAppMessage().
Referenced by LinkManager::createConnectedLink().
|
signal |
Referenced by Vehicle::Vehicle().
|
signal |
Referenced by MAVLinkInspectorController::MAVLinkInspectorController(), and Vehicle::Vehicle().
|
slot |
Definition at line 102 of file MAVLinkProtocol.cc.
References LinkManager::instance(), LinkInterface::mavlinkChannel(), LinkInterface::reportMavlinkV1Traffic(), resetSequenceTracking(), LinkManager::sharedLinkInterfacePointerForLink(), and LinkInterface::signing().
Referenced by LinkManager::createConnectedLink().
| void MAVLinkProtocol::resetMetadataForLink | ( | LinkInterface * | link | ) |
Definition at line 60 of file MAVLinkProtocol.cc.
References LinkInterface::mavlinkChannel(), and LinkInterface::setDecodedFirstMavlinkPacket().
Referenced by LinkManager::createConnectedLink().
| void MAVLinkProtocol::resetSequenceTracking | ( | LinkInterface * | link | ) |
Reset sequence tracking so signing transitions don't inflate loss counters.
Definition at line 70 of file MAVLinkProtocol.cc.
References LinkInterface::mavlinkChannel().
Referenced by receiveBytes().
|
inline |
Definition at line 41 of file MAVLinkProtocol.h.
Referenced by LogReplayWorker::pause(), and LogReplayWorker::play().
|
signal |
Referenced by MultiVehicleManager::init().