QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VehicleSupports.cc
Go to the documentation of this file.
1#include "VehicleSupports.h"
2
4#include "Vehicle.h"
5
7 : QObject(vehicle)
8 , _vehicle(vehicle)
9{
11}
12
13bool VehicleSupports::throttleModeCenterZero() const
14{
16}
17
19{
20 return _vehicle->firmwarePlugin()->supportsNegativeThrust(_vehicle);
21}
22
24{
25 return _vehicle->firmwarePlugin()->supportsJSButton();
26}
27
29{
30 return _vehicle->firmwarePlugin()->supportsRadio();
31}
32
37
39{
40 return _vehicle->firmwarePlugin()->supportsSmartRTL();
41}
42
44{
45 return !_vehicle->px4Firmware();
46}
47
49{
51}
52
57
59{
61}
62
64{
65 return _vehicle->firmwarePlugin()->isCapable(_vehicle, FirmwarePlugin::ROIModeCapability);
66}
67
72
77
79{
80 auto* fp = _vehicle->firmwarePlugin();
82 && !fp->isCapable(_vehicle, FirmwarePlugin::GuidedTakeoffCapability);
83}
84
virtual bool supportsNegativeThrust(Vehicle *) const
virtual bool supportsThrottleModeCenterZero() const
virtual bool supportsMotorInterference() const
virtual bool supportsJSButton() const
@ ChangeHeadingCapability
Vehicle supports changing heading at current location.
@ GuidedTakeoffCapability
Vehicle supports guided takeoff.
@ TakeoffVehicleCapability
Vehicle supports taking off.
@ GuidedModeCapability
Vehicle supports guided mode commands.
@ OrbitModeCapability
Vehicle supports orbit mode.
@ ROIModeCapability
Vehicle supports ROI (both in Fly guided mode and from Plan creation)
@ PauseVehicleCapability
Vehicle supports pausing at current location.
virtual bool isCapable(const Vehicle *, FirmwareCapabilities) const
virtual bool supportsRadio() const
virtual bool supportsSmartRTL() const
void terrainFrameChanged()
bool guidedMode() const
bool negativeThrust() const
bool radio() const
VehicleSupports(Vehicle *vehicle)
bool changeHeading() const
bool orbitMode() const
bool roiMode() const
bool guidedTakeoffWithoutAltitude() const
bool motorInterference() const
bool smartRTL() const
bool guidedTakeoffWithAltitude() const
bool jsButton() const
bool pauseVehicle() const
bool terrainFrame() const
bool takeoffMissionCommand() const
bool px4Firmware() const
Definition Vehicle.h:495
void firmwareTypeChanged()
FirmwarePlugin * firmwarePlugin()
Provides access to the Firmware Plugin for this Vehicle.
Definition Vehicle.h:444