ArduPilot guided action readiness. More...
#include <APMVehicleReadiness.h>
Public Member Functions | |
| APMVehicleReadiness (Vehicle *vehicle) | |
| Public Member Functions inherited from VehicleReadiness | |
| VehicleReadiness (Vehicle *vehicle) | |
| bool | canArm () const |
| bool | canTakeoff () const |
| bool | canStartMission () const |
| Status | status () const |
| void | update () |
| Re-evaluates readiness. Vehicle calls this once the firmware's subclass is fully constructed. | |
Protected Member Functions | |
| ActionFlightModes | _actionFlightModes (GuidedAction action) const override |
| Firmware returns the modes its plugin uses for the action. Unknown modes fall back to the current mode. | |
| Protected Member Functions inherited from VehicleReadiness | |
| virtual bool | _canArm (bool genericCanArm) const |
| virtual bool | _canTakeoff (bool genericCanTakeoff) const |
| virtual bool | _canStartMission (bool genericCanStartMission) const |
| virtual Status | _status (Status genericStatus) const |
Additional Inherited Members | |
| Public Types inherited from VehicleReadiness | |
| enum class | Status { Unknown , NotReady , Ready , Syncing } |
| Signals inherited from VehicleReadiness | |
| void | readinessChanged () |
| Protected Types inherited from VehicleReadiness | |
| enum class | GuidedAction { Takeoff , StartMission } |
| Protected Attributes inherited from VehicleReadiness | |
| Vehicle * | _vehicle = nullptr |
ArduPilot guided action readiness.
Mirrors how APMFirmwarePlugin performs the guided actions: copters and VTOLs take off from Guided, and vehicles other than planes and VTOLs arm in Guided before switching to Auto to start a mission.
Definition at line 9 of file APMVehicleReadiness.h.
|
explicit |
Definition at line 7 of file APMVehicleReadiness.cc.
References VehicleReadiness::VehicleReadiness().
|
overrideprotectedvirtual |
Firmware returns the modes its plugin uses for the action. Unknown modes fall back to the current mode.
Reimplemented from VehicleReadiness.
Definition at line 11 of file APMVehicleReadiness.cc.
References VehicleReadiness::_vehicle, VehicleReadiness::StartMission, and VehicleReadiness::Takeoff.