|
|
@ -57,7 +57,7 @@ public: |
|
|
|
/// key: firmware major version
|
|
|
|
/// key: firmware major version
|
|
|
|
/// value: remapParamNameMinorVersionRemapMap_t entry
|
|
|
|
/// value: remapParamNameMinorVersionRemapMap_t entry
|
|
|
|
typedef QMap<int, remapParamNameMinorVersionRemapMap_t> remapParamNameMajorVersionMap_t; |
|
|
|
typedef QMap<int, remapParamNameMinorVersionRemapMap_t> remapParamNameMajorVersionMap_t; |
|
|
|
|
|
|
|
|
|
|
|
/// Called when Vehicle is first created to send any necessary mavlink messages to the firmware.
|
|
|
|
/// Called when Vehicle is first created to send any necessary mavlink messages to the firmware.
|
|
|
|
virtual void initializeVehicle(Vehicle* vehicle); |
|
|
|
virtual void initializeVehicle(Vehicle* vehicle); |
|
|
|
|
|
|
|
|
|
|
@ -69,18 +69,18 @@ public: |
|
|
|
/// @return List of VehicleComponents for the specified vehicle. Caller owns returned objects and must
|
|
|
|
/// @return List of VehicleComponents for the specified vehicle. Caller owns returned objects and must
|
|
|
|
/// free when no longer needed.
|
|
|
|
/// free when no longer needed.
|
|
|
|
virtual QList<VehicleComponent*> componentsForVehicle(AutoPilotPlugin* vehicle); |
|
|
|
virtual QList<VehicleComponent*> componentsForVehicle(AutoPilotPlugin* vehicle); |
|
|
|
|
|
|
|
|
|
|
|
/// Returns the list of available flight modes
|
|
|
|
/// Returns the list of available flight modes
|
|
|
|
virtual QStringList flightModes(Vehicle* vehicle) { |
|
|
|
virtual QStringList flightModes(Vehicle* vehicle) { |
|
|
|
Q_UNUSED(vehicle); |
|
|
|
Q_UNUSED(vehicle); |
|
|
|
return QStringList(); |
|
|
|
return QStringList(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Returns the name for this flight mode. Flight mode names must be human readable as well as audio speakable.
|
|
|
|
/// Returns the name for this flight mode. Flight mode names must be human readable as well as audio speakable.
|
|
|
|
/// @param base_mode Base mode from mavlink HEARTBEAT message
|
|
|
|
/// @param base_mode Base mode from mavlink HEARTBEAT message
|
|
|
|
/// @param custom_mode Custom mode from mavlink HEARTBEAT message
|
|
|
|
/// @param custom_mode Custom mode from mavlink HEARTBEAT message
|
|
|
|
virtual QString flightMode(uint8_t base_mode, uint32_t custom_mode) const; |
|
|
|
virtual QString flightMode(uint8_t base_mode, uint32_t custom_mode) const; |
|
|
|
|
|
|
|
|
|
|
|
/// Sets base_mode and custom_mode to specified flight mode.
|
|
|
|
/// Sets base_mode and custom_mode to specified flight mode.
|
|
|
|
/// @param[out] base_mode Base mode for SET_MODE mavlink message
|
|
|
|
/// @param[out] base_mode Base mode for SET_MODE mavlink message
|
|
|
|
/// @param[out] custom_mode Custom mode for SET_MODE mavlink message
|
|
|
|
/// @param[out] custom_mode Custom mode for SET_MODE mavlink message
|
|
|
@ -109,6 +109,10 @@ public: |
|
|
|
/// @param altitudeRel Relative altitude to takeoff to
|
|
|
|
/// @param altitudeRel Relative altitude to takeoff to
|
|
|
|
virtual void guidedModeTakeoff(Vehicle* vehicle, double altitudeRel); |
|
|
|
virtual void guidedModeTakeoff(Vehicle* vehicle, double altitudeRel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Command vehicle to orbit given center point
|
|
|
|
|
|
|
|
/// @param centerCoord Center Coordinates
|
|
|
|
|
|
|
|
virtual void guidedModeOrbit(Vehicle* vehicle, const QGeoCoordinate& centerCoord, double radius, double velocity, double altitude); |
|
|
|
|
|
|
|
|
|
|
|
/// Command vehicle to move to specified location (altitude is included and relative)
|
|
|
|
/// Command vehicle to move to specified location (altitude is included and relative)
|
|
|
|
virtual void guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordinate& gotoCoord); |
|
|
|
virtual void guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoordinate& gotoCoord); |
|
|
|
|
|
|
|
|
|
|
@ -122,7 +126,7 @@ public: |
|
|
|
/// The remainder can be assigned to Vehicle actions.
|
|
|
|
/// The remainder can be assigned to Vehicle actions.
|
|
|
|
/// @return -1: reserver all buttons, >0 number of buttons to reserve
|
|
|
|
/// @return -1: reserver all buttons, >0 number of buttons to reserve
|
|
|
|
virtual int manualControlReservedButtonCount(void); |
|
|
|
virtual int manualControlReservedButtonCount(void); |
|
|
|
|
|
|
|
|
|
|
|
/// Called before any mavlink message is processed by Vehicle such that the firmwre plugin
|
|
|
|
/// 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
|
|
|
|
/// 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.
|
|
|
|
/// spec implementations such that the base code can remain mavlink generic.
|
|
|
@ -130,7 +134,7 @@ public: |
|
|
|
/// @param message[in,out] Mavlink message to adjust if needed.
|
|
|
|
/// @param message[in,out] Mavlink message to adjust if needed.
|
|
|
|
/// @return false: skip message, true: process message
|
|
|
|
/// @return false: skip message, true: process message
|
|
|
|
virtual bool adjustIncomingMavlinkMessage(Vehicle* vehicle, mavlink_message_t* message); |
|
|
|
virtual bool adjustIncomingMavlinkMessage(Vehicle* vehicle, mavlink_message_t* message); |
|
|
|
|
|
|
|
|
|
|
|
/// Called before any mavlink message is sent to the Vehicle so plugin can adjust any message characteristics.
|
|
|
|
/// Called before any mavlink message is sent to the Vehicle so plugin can adjust any message characteristics.
|
|
|
|
/// This is handy to adjust or differences in mavlink spec implementations such that the base code can remain
|
|
|
|
/// This is handy to adjust or differences in mavlink spec implementations such that the base code can remain
|
|
|
|
/// mavlink generic.
|
|
|
|
/// mavlink generic.
|
|
|
@ -145,7 +149,7 @@ public: |
|
|
|
/// it, it may or may not return a home position back in position 0.
|
|
|
|
/// it, it may or may not return a home position back in position 0.
|
|
|
|
/// false: Do not send first item to vehicle, sequence numbers must be adjusted
|
|
|
|
/// false: Do not send first item to vehicle, sequence numbers must be adjusted
|
|
|
|
virtual bool sendHomePositionToVehicle(void); |
|
|
|
virtual bool sendHomePositionToVehicle(void); |
|
|
|
|
|
|
|
|
|
|
|
/// Returns the parameter that is used to identify the default component
|
|
|
|
/// Returns the parameter that is used to identify the default component
|
|
|
|
virtual QString getDefaultComponentIdParam(void) const { return QString(); } |
|
|
|
virtual QString getDefaultComponentIdParam(void) const { return QString(); } |
|
|
|
|
|
|
|
|
|
|
|