|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <PX4FirmwarePlugin.h>
Inheritance diagram for PX4FirmwarePlugin:
Collaboration diagram for PX4FirmwarePlugin:Public Member Functions | |
| PX4FirmwarePlugin () | |
| virtual | ~PX4FirmwarePlugin () |
| void | _changeAltAfterPause (void *resultHandlerData, bool pauseSucceeded) |
| QList< MAV_CMD > | supportedMissionCommands (QGCMAVLink::VehicleClass_t vehicleClass) const override |
| List of supported mission commands. Empty list for all commands supported. | |
| AutoPilotPlugin * | autopilotPlugin (Vehicle *vehicle) const override |
| bool | isCapable (const Vehicle *vehicle, FirmwareCapabilities capabilities) const override |
| QStringList | flightModes (Vehicle *vehicle) const override |
| QString | flightMode (uint8_t base_mode, uint32_t custom_mode) const override |
| bool | setFlightMode (const QString &flightMode, uint8_t *base_mode, uint32_t *custom_mode) const override |
| void | setGuidedMode (Vehicle *vehicle, bool guidedMode) const override |
| Set guided flight mode. | |
| QString | pauseFlightMode (void) const override |
| Returns The flight mode which indicates the vehicle is paused. | |
| QString | missionFlightMode (void) const override |
| Returns the flight mode for running missions. | |
| QString | rtlFlightMode (void) const override |
| Returns the flight mode for RTL. | |
| QString | landFlightMode (void) const override |
| Returns the flight mode for Land. | |
| QString | takeControlFlightMode (void) const override |
| Returns the flight mode to use when the operator wants to take back control from autonomouse flight. | |
| QString | gotoFlightMode (void) const override |
| Returns the flight mode which the vehicle will be in if it is performing a goto location. | |
| QString | followFlightMode (void) const override |
| Returns the flight mode which the vehicle will be for follow me. | |
| QString | takeOffFlightMode (void) const override |
| Returns the flight mode for TakeOff. | |
| QString | stabilizedFlightMode (void) const override |
| Returns the flight mode for Stabilized. | |
| void | pauseVehicle (Vehicle *vehicle) const override |
| void | guidedModeRTL (Vehicle *vehicle, bool smartRTL) const override |
| Command vehicle to return to launch. | |
| void | guidedModeLand (Vehicle *vehicle) const override |
| Command vehicle to land at current location. | |
| void | guidedModeTakeoff (Vehicle *vehicle, double takeoffAltRel) const override |
| Command vehicle to takeoff from current location to the specified height. | |
| double | maximumHorizontalSpeedMultirotorMetersSecond (Vehicle *vehicle) const override |
| double | maximumEquivalentAirspeed (Vehicle *vehicle) const override |
| double | minimumEquivalentAirspeed (Vehicle *vehicle) const override |
| bool | mulirotorSpeedLimitsAvailable (Vehicle *vehicle) const override |
| bool | fixedWingAirSpeedLimitsAvailable (Vehicle *vehicle) const override |
| bool | guidedModeGotoLocation (Vehicle *vehicle, const QGeoCoordinate &gotoCoord, double forwardFlightLoiterRadius) const override |
| void | guidedModeChangeAltitude (Vehicle *vehicle, double altitudeRel, bool pauseVehicle) override |
| void | guidedModeChangeGroundSpeedMetersSecond (Vehicle *vehicle, double groundspeed) const override |
| void | guidedModeChangeEquivalentAirspeedMetersSecond (Vehicle *vehicle, double airspeed_equiv) const override |
| void | guidedModeChangeHeading (Vehicle *vehicle, const QGeoCoordinate &headingCoord) const override |
| Command vehicle to rotate towards specified location. | |
| void | startTakeoff (Vehicle *vehicle) const override |
| Command the vehicle to start a takeoff. | |
| void | startMission (Vehicle *vehicle) const override |
| Command the vehicle to start the mission. | |
| bool | isGuidedMode (const Vehicle *vehicle) const override |
| Returns whether the vehicle is in guided mode or not. | |
| void | initializeVehicle (Vehicle *vehicle) override |
| Called when Vehicle is first created to perform any firmware specific setup. | |
| bool | sendHomePositionToVehicle (void) const override |
| QString | missionCommandOverrides (QGCMAVLink::VehicleClass_t vehicleClass) const override |
| QString | _internalParameterMetaDataFile (const Vehicle *vehicle) const override |
| MAV_AUTOPILOT | _autopilotType () const override |
| ParameterMetaData * | _createParameterMetaData () final |
| bool | adjustIncomingMavlinkMessage (Vehicle *vehicle, mavlink_message_t *message) override |
| QString | offlineEditingParamFile (Vehicle *vehicle) const override |
| Return the resource file which contains the set of params loaded for offline editing. | |
| QString | autoDisarmParameter (Vehicle *vehicle) const override |
| uint32_t | highLatencyCustomModeTo32Bits (uint16_t hlCustomMode) const override |
| Convert from HIGH_LATENCY2.custom_mode value to correct 32 bit value. | |
| bool | supportsNegativeThrust (Vehicle *vehicle) const override |
| QString | getHobbsMeter (Vehicle *vehicle) const override |
| gets hobbs meter from autopilot. This should be reimplmeented for each firmware | |
| bool | hasGripper (const Vehicle *vehicle) const override |
| QVariant | expandedToolbarIndicatorSource (const Vehicle *vehicle, const QString &indicatorName) const override |
| void | updateAvailableFlightModes (FlightModeList &modeList) override |
| Update Available flight modes recieved from vehicle. | |
Public Member Functions inherited from FirmwarePlugin | |
| FirmwarePlugin (QObject *parent=nullptr) | |
| virtual | ~FirmwarePlugin () |
| virtual bool | MAV_CMD_DO_SET_MODE_is_supported () const |
| returns true if this flight stack supports MAV_CMD_DO_SET_MODE | |
| virtual QString | smartRTLFlightMode () const |
| Returns the flight mode for Smart RTL. | |
| virtual bool | supportsSmartRTL () const |
| virtual QString | motorDetectionFlightMode () const |
| Returns the flight mode for Motor Detection. | |
| virtual double | minimumTakeoffAltitudeMeters (Vehicle *) const |
| virtual int | defaultJoystickTXMode () const |
| virtual bool | supportsThrottleModeCenterZero () const |
| virtual bool | supportsRadio () const |
| virtual bool | supportsJSButton () const |
| virtual bool | supportsMotorInterference () const |
| virtual void | adjustOutgoingMavlinkMessageThreadSafe (Vehicle *, LinkInterface *, mavlink_message_t *) |
| virtual const remapParamNameMajorVersionMap_t & | paramNameRemapMajorVersionMap () const |
| virtual int | remapParamNameHigestMinorVersionNumber (int) const |
| virtual bool | multiRotorCoaxialMotors (Vehicle *) const |
| virtual bool | multiRotorXConfig (Vehicle *) const |
| virtual QString | vehicleImageOpaque (const Vehicle *) const |
| Return the resource file which contains the vehicle icon used in the flight view when the view is dark (Satellite for instance) | |
| virtual QString | vehicleImageOutline (const Vehicle *) const |
| Return the resource file which contains the vehicle icon used in the flight view when the view is light (Map for instance) | |
| virtual const QVariantList & | toolIndicators (const Vehicle *vehicle) |
| virtual QGCCameraManager * | createCameraManager (Vehicle *vehicle) const |
| Creates vehicle camera manager. | |
| virtual MavlinkCameraControlInterface * | createCameraControl (const mavlink_camera_information_t *info, Vehicle *vehicle, int compID, QObject *parent=nullptr) const |
| Camera control. | |
| virtual QMap< QString, FactGroup * > * | factGroups () |
| Returns a pointer to a dictionary of firmware-specific FactGroups. | |
| virtual void | batteryConsumptionData (Vehicle *vehicle, int &mAhBattery, double &hoverAmps, double &cruiseAmps) const |
| virtual bool | hasGimbal (Vehicle *vehicle, bool &rollSupported, bool &pitchSupported, bool &yawSupported) const |
| virtual void | checkIfIsLatestStable (Vehicle *vehicle) const |
| Used to check if running firmware is latest stable version. | |
| int | versionCompare (const Vehicle *vehicle, const QString &compare) const |
| int | versionCompare (const Vehicle *vehicle, int major, int minor, int patch) const |
| virtual void | adjustMetaData (MAV_TYPE, FactMetaData *) |
| virtual void | sendGCSMotionReport (Vehicle *vehicle, const FollowMe::GCSMotionReport &motionReport, uint8_t estimationCapabilities) const |
| Sends the appropriate mavlink message for follow me support. | |
| virtual Autotune * | createAutotune (Vehicle *vehicle) const |
| Creates Autotune object. | |
| ParameterMetaData * | loadParameterMetaData (const Vehicle *vehicle) |
| void | cacheParameterMetaDataFile (const QString &metaDataFile) |
Definition at line 6 of file PX4FirmwarePlugin.h.
| PX4FirmwarePlugin::PX4FirmwarePlugin | ( | ) |
Definition at line 25 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_setModeEnumToModeStringMapping(), PX4CustomMode::ACRO, PX4CustomMode::ALTCTL, PX4CustomMode::AUTO_LAND, PX4CustomMode::AUTO_LOITER, PX4CustomMode::AUTO_MISSION, PX4CustomMode::AUTO_PRECLAND, PX4CustomMode::AUTO_READY, PX4CustomMode::AUTO_RTGS, PX4CustomMode::AUTO_RTL, PX4CustomMode::AUTO_TAKEOFF, PX4CustomMode::MANUAL, PX4CustomMode::OFFBOARD, PX4CustomMode::POSCTL_ORBIT, PX4CustomMode::POSCTL_POSCTL, PX4CustomMode::RATTITUDE, PX4CustomMode::SIMPLE, PX4CustomMode::STABILIZED, and updateAvailableFlightModes().
|
virtual |
Definition at line 90 of file PX4FirmwarePlugin.cc.
|
inlineoverridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 57 of file PX4FirmwarePlugin.h.
| void PX4FirmwarePlugin::_changeAltAfterPause | ( | void * | resultHandlerData, |
| bool | pauseSucceeded | ||
| ) |
Definition at line 434 of file PX4FirmwarePlugin.cc.
References Vehicle::defaultComponentId(), PauseVehicleThenChangeAltData_t::newAMSLAlt, Vehicle::sendMavCommand(), QGC::showAppMessage(), and PauseVehicleThenChangeAltData_t::vehicle.
Referenced by _pauseVehicleThenChangeAltResultHandler(), and guidedModeChangeAltitude().
|
finalvirtual |
Reimplemented from FirmwarePlugin.
Definition at line 253 of file PX4FirmwarePlugin.cc.
|
inlineoverridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 56 of file PX4FirmwarePlugin.h.
|
overridevirtual |
Called before any mavlink message is processed by Vehicle such that the firmwre plugin can adjust any message characteristics. This is handy to adjust or differences in mavlink spec implementations such that the base code can remain mavlink generic.
| vehicle | Vehicle message came from |
| message[in,out] | Mavlink message to adjust if needed. |
Reimplemented from FirmwarePlugin.
Definition at line 625 of file PX4FirmwarePlugin.cc.
|
inlineoverridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 61 of file PX4FirmwarePlugin.h.
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 94 of file PX4FirmwarePlugin.cc.
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 798 of file PX4FirmwarePlugin.cc.
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 363 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::parameterExists(), and Vehicle::parameterManager().
|
overridevirtual |
Returns the name for this flight mode. Flight mode names must be human readable as well as audio speakable.
| base_mode | Base mode from mavlink HEARTBEAT message |
| custom_mode | Custom mode from mavlink HEARTBEAT message |
Reimplemented from FirmwarePlugin.
Definition at line 119 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and flightMode().
Referenced by flightMode(), and setFlightMode().
|
overridevirtual |
Returns the list of available flight modes for the Fly View dropdown. This may or may not be the full list available from the firmware. Call will be made again if advanced mode changes.
Reimplemented from FirmwarePlugin.
Definition at line 99 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_flightModeList, Vehicle::fixedWing(), and Vehicle::multiRotor().
|
overridevirtual |
Returns the flight mode which the vehicle will be for follow me.
Reimplemented from FirmwarePlugin.
Definition at line 604 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_FOLLOW_TARGET.
|
overridevirtual |
gets hobbs meter from autopilot. This should be reimplmeented for each firmware
Reimplemented from FirmwarePlugin.
Definition at line 707 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::getParameter(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().
|
overridevirtual |
Returns the flight mode which the vehicle will be in if it is performing a goto location.
Reimplemented from FirmwarePlugin.
Definition at line 599 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_LOITER.
Referenced by setGuidedMode().
|
overridevirtual |
Command vehicle to change altitude
| altitudeChange | If > 0, go up by amount specified, if < 0, go down by amount specified |
| pauseVehicle | true: pause vehicle prior to altitude change |
Reimplemented from FirmwarePlugin.
Definition at line 455 of file PX4FirmwarePlugin.cc.
References _changeAltAfterPause(), _pauseVehicleThenChangeAltResultHandler(), VehicleFactGroup::altitudeRelative(), Vehicle::defaultComponentId(), Vehicle::homePosition(), PauseVehicleThenChangeAltData_t::newAMSLAlt, pauseVehicle(), PauseVehicleThenChangeAltData_t::plugin, Fact::rawValue(), VehicleTypes::MavCmdAckHandlerInfo_s::resultHandler, VehicleTypes::MavCmdAckHandlerInfo_s::resultHandlerData, Vehicle::sendMavCommandWithHandler(), QGC::showAppMessage(), and PauseVehicleThenChangeAltData_t::vehicle.
|
overridevirtual |
Command vehicle to change equivalent airspeed
| airspeed_equiv | Equivalent airspeed in m/s |
Reimplemented from FirmwarePlugin.
Definition at line 506 of file PX4FirmwarePlugin.cc.
References Vehicle::defaultComponentId(), and Vehicle::sendMavCommand().
|
overridevirtual |
Command vehicle to change groundspeed
| groundspeed | Groundspeed in m/s |
Reimplemented from FirmwarePlugin.
Definition at line 492 of file PX4FirmwarePlugin.cc.
References Vehicle::defaultComponentId(), and Vehicle::sendMavCommand().
|
overridevirtual |
Command vehicle to rotate towards specified location.
Reimplemented from FirmwarePlugin.
Definition at line 520 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::ChangeHeadingCapability, Vehicle::coordinate(), Vehicle::defaultComponentId(), isCapable(), Vehicle::sendMavCommand(), and QGC::showAppMessage().
|
overridevirtual |
Command vehicle to move to specified location (altitude is ignored, vehicle uses current altitude)
Reimplemented from FirmwarePlugin.
Definition at line 369 of file PX4FirmwarePlugin.cc.
References VehicleFactGroup::altitudeAMSL(), Vehicle::capabilityBits(), Vehicle::defaultComponentId(), Fact::rawValue(), Vehicle::sendMavCommand(), Vehicle::sendMavCommandInt(), and QGC::showAppMessage().
|
overridevirtual |
Command vehicle to land at current location.
Reimplemented from FirmwarePlugin.
Definition at line 278 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_setFlightModeAndValidate(), and landFlightMode().
|
overridevirtual |
Command vehicle to return to launch.
Reimplemented from FirmwarePlugin.
Definition at line 272 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_setFlightModeAndValidate(), and rtlFlightMode().
|
overridevirtual |
Command vehicle to takeoff from current location to the specified height.
Reimplemented from FirmwarePlugin.
Definition at line 304 of file PX4FirmwarePlugin.cc.
References VehicleFactGroup::altitudeAMSL(), Vehicle::defaultComponentId(), Vehicle::mavCommandResult(), Fact::rawValue(), Vehicle::sendMavCommand(), and QGC::showAppMessage().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 729 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::getParameter(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().
|
overridevirtual |
Convert from HIGH_LATENCY2.custom_mode value to correct 32 bit value.
Reimplemented from FirmwarePlugin.
Definition at line 682 of file PX4FirmwarePlugin.cc.
References px4_custom_mode::custom_mode_hl, and px4_custom_mode::data.
|
overridevirtual |
Called when Vehicle is first created to perform any firmware specific setup.
Reimplemented from FirmwarePlugin.
Definition at line 169 of file PX4FirmwarePlugin.cc.
References Vehicle::setFirmwarePluginInstanceData().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 153 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::ChangeHeadingCapability, Vehicle::fixedWing(), FirmwarePlugin::GuidedModeCapability, FirmwarePlugin::GuidedTakeoffCapability, Vehicle::multiRotor(), FirmwarePlugin::OrbitModeCapability, FirmwarePlugin::PauseVehicleCapability, FirmwarePlugin::ROIModeCapability, FirmwarePlugin::SetFlightModeCapability, FirmwarePlugin::TakeoffVehicleCapability, and Vehicle::vtol().
Referenced by guidedModeChangeHeading().
|
overridevirtual |
Returns whether the vehicle is in guided mode or not.
Reimplemented from FirmwarePlugin.
Definition at line 619 of file PX4FirmwarePlugin.cc.
References Vehicle::flightMode(), landFlightMode(), pauseFlightMode(), and takeOffFlightMode().
|
overridevirtual |
Returns the flight mode for Land.
Reimplemented from FirmwarePlugin.
Definition at line 589 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_LAND.
Referenced by guidedModeLand(), and isGuidedMode().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 336 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::getParameter(), FirmwarePlugin::maximumEquivalentAirspeed(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 325 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::getParameter(), FirmwarePlugin::maximumHorizontalSpeedMultirotorMetersSecond(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 347 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::getParameter(), FirmwarePlugin::minimumEquivalentAirspeed(), ParameterManager::parameterExists(), Vehicle::parameterManager(), and Fact::rawValue().
|
overridevirtual |
Returns the name of the mission command json override file for the specified vehicle type.
| vehicleClass | Vehicle class to return file for, VehicleClassGeneric is a request for overrides for all vehicle types |
Reimplemented from FirmwarePlugin.
Definition at line 232 of file PX4FirmwarePlugin.cc.
References QGCMAVLink::VehicleClassFixedWing, QGCMAVLinkTypes::VehicleClassGeneric, QGCMAVLink::VehicleClassMultiRotor, QGCMAVLink::VehicleClassRoverBoat, QGCMAVLink::VehicleClassSub, and QGCMAVLink::VehicleClassVTOL.
|
overridevirtual |
Returns the flight mode for running missions.
Reimplemented from FirmwarePlugin.
Definition at line 579 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_MISSION.
Referenced by startMission().
|
overridevirtual |
Reimplemented from FirmwarePlugin.
Definition at line 358 of file PX4FirmwarePlugin.cc.
References ParameterManager::defaultComponentId, ParameterManager::parameterExists(), and Vehicle::parameterManager().
|
inlineoverridevirtual |
Return the resource file which contains the set of params loaded for offline editing.
Reimplemented from FirmwarePlugin.
Definition at line 60 of file PX4FirmwarePlugin.h.
|
overridevirtual |
Returns The flight mode which indicates the vehicle is paused.
Reimplemented from FirmwarePlugin.
Definition at line 574 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_LOITER.
Referenced by isGuidedMode().
|
overridevirtual |
Causes the vehicle to stop at current position. If guide mode is supported, vehicle will be let in guide mode. If not, vehicle will be left in Loiter.
Reimplemented from FirmwarePlugin.
Definition at line 258 of file PX4FirmwarePlugin.cc.
References Vehicle::defaultComponentId(), and Vehicle::sendMavCommand().
Referenced by guidedModeChangeAltitude(), and setGuidedMode().
|
overridevirtual |
Returns the flight mode for RTL.
Reimplemented from FirmwarePlugin.
Definition at line 584 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_RTL.
Referenced by guidedModeRTL().
|
overridevirtual |
Determines how to handle the first item of the mission item list. Internally to QGC the first item is always the home position. Generic stack does not want home position sent in the first position. Subsequent sequence numbers must be adjusted. This is the mavlink spec default.
Reimplemented from FirmwarePlugin.
Definition at line 174 of file PX4FirmwarePlugin.cc.
|
overridevirtual |
Sets base_mode and custom_mode to specified flight mode.
| [out] | base_mode | Base mode for SET_MODE mavlink message |
| [out] | custom_mode | Custom mode for SET_MODE mavlink message |
Reimplemented from FirmwarePlugin.
Definition at line 130 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_flightModeList, and flightMode().
|
overridevirtual |
Set guided flight mode.
Reimplemented from FirmwarePlugin.
Definition at line 565 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_setFlightModeAndValidate(), gotoFlightMode(), and pauseVehicle().
|
overridevirtual |
Returns the flight mode for Stabilized.
Reimplemented from FirmwarePlugin.
Definition at line 614 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::STABILIZED.
|
overridevirtual |
Command the vehicle to start the mission.
Reimplemented from FirmwarePlugin.
Definition at line 553 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_armVehicleAndValidate(), FirmwarePlugin::_setFlightModeAndValidate(), missionFlightMode(), and QGC::showAppMessage().
|
overridevirtual |
Command the vehicle to start a takeoff.
Reimplemented from FirmwarePlugin.
Definition at line 541 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_armVehicleAndValidate(), FirmwarePlugin::_setFlightModeAndValidate(), QGC::showAppMessage(), and takeOffFlightMode().
|
overridevirtual |
List of supported mission commands. Empty list for all commands supported.
Reimplemented from FirmwarePlugin.
Definition at line 181 of file PX4FirmwarePlugin.cc.
References SettingsManager::instance(), QGCMAVLink::VehicleClassFixedWing, QGCMAVLinkTypes::VehicleClassGeneric, QGCMAVLink::VehicleClassMultiRotor, and QGCMAVLink::VehicleClassVTOL.
|
overridevirtual |
Returns true if the vehicle and firmware supports the use of negative thrust Typically supported rover.
Reimplemented from FirmwarePlugin.
Definition at line 702 of file PX4FirmwarePlugin.cc.
References Vehicle::vehicleType().
|
overridevirtual |
Returns the flight mode to use when the operator wants to take back control from autonomouse flight.
Reimplemented from FirmwarePlugin.
Definition at line 594 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::MANUAL.
|
overridevirtual |
Returns the flight mode for TakeOff.
Reimplemented from FirmwarePlugin.
Definition at line 609 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_modeEnumToString, and PX4CustomMode::AUTO_TAKEOFF.
Referenced by isGuidedMode(), and startTakeoff().
|
overridevirtual |
Update Available flight modes recieved from vehicle.
Reimplemented from FirmwarePlugin.
Definition at line 738 of file PX4FirmwarePlugin.cc.
References FirmwarePlugin::_updateFlightModeList(), PX4CustomMode::ACRO, PX4CustomMode::ALTCTL, PX4CustomMode::AUTO_FOLLOW_TARGET, PX4CustomMode::AUTO_LAND, PX4CustomMode::AUTO_LOITER, PX4CustomMode::AUTO_MISSION, PX4CustomMode::AUTO_PRECLAND, PX4CustomMode::AUTO_READY, PX4CustomMode::AUTO_RTGS, PX4CustomMode::AUTO_RTL, PX4CustomMode::AUTO_TAKEOFF, PX4CustomMode::MANUAL, PX4CustomMode::OFFBOARD, PX4CustomMode::POSCTL_ORBIT, PX4CustomMode::POSCTL_POSCTL, PX4CustomMode::RATTITUDE, PX4CustomMode::SIMPLE, and PX4CustomMode::STABILIZED.
Referenced by PX4FirmwarePlugin().