Offboard Control Interface

The offboard control interface allows an external controller to send low-level attitude, position, velocity, and/or acceleration setpoints to the vehicle.

This is commonly used to provide external control of a real-time flight stack from a companion/mission computer, for example, in order to implement features such as obstacle avoidance or collision prevention.

Generally setpoints are only obeyed in a specific flight-stack mode. The flight stack requires the setpoints to be recieved for some time before it will allow the mode to be enabled, and will switch out of the mode if setpoints are no longer received.

The particular types of setpoints that are supported, if any, depend on the vehicle type and flight stack.

Message/Enum Summary

MessageDescription
SET_POSITION_TARGET_LOCAL_NEDSets a desired vehicle position, velocity, and/or accelaration setpoint in a local north-east-down coordinate frame.
SET_POSITION_TARGET_GLOBAL_INTSets a desired vehicle position, velocity, and/or acceleration in a global coordinate system (WGS84)
SET_ATTITUDE_TARGETSets a desired vehicle attitude.
POSITION_TARGET_LOCAL_NEDPublishes current local NED target (set by SET_POSITION_TARGET_LOCAL_NED).
POSITION_TARGET_GLOBAL_INTPublishes current global target (set by SET_POSITION_TARGET_GLOBAL_INT).
ATTITUDE_TARGETPublishes current attitude target (set by SET_ATTITUDE_TARGET).
EnumDescription
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NEDFlight stack supports SET_POSITION_TARGET_LOCAL_NED.
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INTFlight stack supports SET_POSITION_TARGET_LOCAL_NED.
MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGETFlight stack supports SET_ATTITUDE_TARGET.

Feature support

Test for setter message support by checking AUTOPILOT_VERSION.capabilities for the associated protocol bit: MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED, MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT, MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET.

Note that support for the protocol/message does not imply that every vehicle will support every possible combination of parameters. This can only be inferred from the flight stack documentation.

Implementations

PX4 supports this protocol in Offboard mode. The allowed setpoints are documented at that link, and depend on the vehicle type.

ArduPilot supports this protocol in Guided mode. The supported messages for each vehicle type are covered in:

results matching ""

    No results matching ""