|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <GimbalController.h>
Inheritance diagram for GimbalController:
Collaboration diagram for GimbalController:Public Slots | |
| void | gimbalYawLock (bool yawLock) |
| Q_INVOKABLE void | centerGimbal () |
| void | gimbalPitchStart (int direction) |
| void | gimbalYawStart (int direction) |
| void | gimbalPitchStop () |
| void | gimbalYawStop () |
Signals | |
| void | activeGimbalChanged () |
| void | showAcquireGimbalControlPopup () |
Public Member Functions | |
| GimbalController (Vehicle *vehicle) | |
| ~GimbalController () | |
| Gimbal * | activeGimbal () const |
| QmlObjectListModel * | gimbals () const |
| void | setActiveGimbal (Gimbal *gimbal) |
| void | sendPitchYawFlags (uint32_t flags) |
| Q_INVOKABLE void | gimbalOnScreenControl (float panpct, float tiltpct, bool clickAndPoint, bool clickAndDrag, bool rateControl, bool retract=false, bool neutral=false, bool yawlock=false) |
| Q_INVOKABLE void | sendPitchBodyYaw (float pitch, float yaw, bool showError=true) |
| Q_INVOKABLE void | sendPitchAbsoluteYaw (float pitch, float yaw, bool showError=true) |
| Q_INVOKABLE void | setGimbalRetract (bool set) |
| Q_INVOKABLE void | setGimbalYawLock (bool set) |
| Q_INVOKABLE void | acquireGimbalControl () |
| Q_INVOKABLE void | releaseGimbalControl () |
| Q_INVOKABLE void | sendRate () |
| Q_INVOKABLE void | sendGimbalRate (float pitch_rate_deg_s, float yaw_rate_deg_s) |
Definition at line 12 of file GimbalController.h.
| GimbalController::GimbalController | ( | Vehicle * | vehicle | ) |
Definition at line 17 of file GimbalController.cc.
References Vehicle::initialConnectComplete(), and Vehicle::mavlinkMessageReceived().
| GimbalController::~GimbalController | ( | ) |
Definition at line 31 of file GimbalController.cc.
| void GimbalController::acquireGimbalControl | ( | ) |
Definition at line 673 of file GimbalController.cc.
References Gimbal::deviceId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::getSystemId(), MAVLinkProtocol::instance(), Gimbal::managerCompid(), Fact::rawValue(), and Vehicle::sendMavCommand().
|
inline |
Definition at line 26 of file GimbalController.h.
Referenced by gimbalPitchStart(), gimbalPitchStop(), gimbalYawStart(), and gimbalYawStop().
|
signal |
Referenced by setActiveGimbal().
|
slot |
Definition at line 424 of file GimbalController.cc.
References sendPitchBodyYaw().
| void GimbalController::gimbalOnScreenControl | ( | float | panpct, |
| float | tiltpct, | ||
| bool | clickAndPoint, | ||
| bool | clickAndDrag, | ||
| bool | rateControl, | ||
| bool | retract = false, |
||
| bool | neutral = false, |
||
| bool | yawlock = false |
||
| ) |
Definition at line 433 of file GimbalController.cc.
References Gimbal::absolutePitch(), Gimbal::bodyYaw(), SettingsManager::gimbalControllerSettings(), VehicleFactGroup::heading(), SettingsManager::instance(), Fact::rawValue(), sendPitchAbsoluteYaw(), sendPitchBodyYaw(), and Gimbal::yawLock().
|
slot |
Definition at line 377 of file GimbalController.cc.
References activeGimbal(), SettingsManager::gimbalControllerSettings(), SettingsManager::instance(), sendRate(), and Gimbal::setPitchRate().
|
slot |
Definition at line 402 of file GimbalController.cc.
References activeGimbal(), sendRate(), and Gimbal::setPitchRate().
|
inline |
Definition at line 27 of file GimbalController.h.
|
inlineslot |
Definition at line 52 of file GimbalController.h.
References setGimbalYawLock().
|
slot |
Definition at line 390 of file GimbalController.cc.
References activeGimbal(), SettingsManager::gimbalControllerSettings(), SettingsManager::instance(), sendRate(), and Gimbal::setYawRate().
|
slot |
Definition at line 413 of file GimbalController.cc.
References activeGimbal(), sendRate(), and Gimbal::setYawRate().
| void GimbalController::releaseGimbalControl | ( | ) |
Definition at line 693 of file GimbalController.cc.
References Gimbal::deviceId(), Gimbal::managerCompid(), Fact::rawValue(), and Vehicle::sendMavCommand().
| void GimbalController::sendGimbalRate | ( | float | pitch_rate_deg_s, |
| float | yaw_rate_deg_s | ||
| ) |
Send gimbal attitude rates directly without using active gimbal's rate properties
| pitch_rate_deg_s | Pitch rate in degrees per second |
| yaw_rate_deg_s | Yaw rate in degrees per second |
Definition at line 579 of file GimbalController.cc.
| void GimbalController::sendPitchAbsoluteYaw | ( | float | pitch, |
| float | yaw, | ||
| bool | showError = true |
||
| ) |
Definition at line 506 of file GimbalController.cc.
References Gimbal::deviceId(), Gimbal::managerCompid(), Fact::rawValue(), Vehicle::sendMavCommand(), Gimbal::setAbsolutePitch(), and Gimbal::setYawRate().
Referenced by gimbalOnScreenControl().
| void GimbalController::sendPitchBodyYaw | ( | float | pitch, |
| float | yaw, | ||
| bool | showError = true |
||
| ) |
Definition at line 477 of file GimbalController.cc.
References Gimbal::deviceId(), Gimbal::managerCompid(), Fact::rawValue(), Vehicle::sendMavCommand(), Gimbal::setAbsolutePitch(), and Gimbal::setYawRate().
Referenced by centerGimbal(), and gimbalOnScreenControl().
| void GimbalController::sendPitchYawFlags | ( | uint32_t | flags | ) |
Definition at line 656 of file GimbalController.cc.
References Gimbal::absolutePitch(), Gimbal::absoluteYaw(), Gimbal::bodyYaw(), Gimbal::deviceId(), Gimbal::managerCompid(), Fact::rawValue(), and Vehicle::sendMavCommand().
Referenced by setGimbalRetract(), and setGimbalYawLock().
| void GimbalController::sendRate | ( | ) |
Definition at line 560 of file GimbalController.cc.
References Gimbal::pitchRate(), and Gimbal::yawRate().
Referenced by gimbalPitchStart(), gimbalPitchStop(), gimbalYawStart(), and gimbalYawStop().
| void GimbalController::setActiveGimbal | ( | Gimbal * | gimbal | ) |
Definition at line 41 of file GimbalController.cc.
References activeGimbalChanged().
| void GimbalController::setGimbalRetract | ( | bool | set | ) |
Definition at line 544 of file GimbalController.cc.
References sendPitchYawFlags().
| void GimbalController::setGimbalYawLock | ( | bool | set | ) |
Definition at line 641 of file GimbalController.cc.
References sendPitchYawFlags().
Referenced by gimbalYawLock().
|
signal |