Get desktop application:
View/edit binary Protocol Buffers messages
Control a drone with position, velocity, attitude or motor commands. The module is called offboard because the commands can be sent from external sources as opposed to onboard control right inside the autopilot "board". Client code must specify a setpoint before starting offboard mode. Mavsdk automatically sends setpoints at 20Hz (PX4 Offboard mode requires that setpoints are minimally sent at 2Hz).
Check if offboard control is active. True means that the vehicle is in offboard mode and we are actively sending setpoints.
(message has no fields)
True if offboard is active
Set the acceleration in NED coordinates.
Acceleration
Set direct actuator control values to groups #0 and #1. First 8 controls will go to control group 0, the following 8 controls to control group 1 (if actuator_control.num_controls more than 8).
Actuator control values
Set the attitude in terms of roll, pitch and yaw in degrees with thrust.
Attitude roll, pitch and yaw along with thrust
Set the attitude rate in terms of pitch, roll and yaw angular rate along with thrust.
Attitude rate roll, pitch and yaw angular rate along with thrust
Set the position in Global coordinates (latitude, longitude, altitude) and yaw
Position and yaw
Set the position in NED coordinates and yaw.
Position and yaw
Set the position, velocity and acceleration in NED coordinates, with velocity and acceleration used as feed-forward.
Position and yaw
Velocity and yaw
Acceleration
Set the position in NED coordinates, with the velocity to be used as feed-forward.
Position and yaw
Velocity and yaw
Set the velocity in body coordinates and yaw angular rate. Not available for fixed-wing aircraft.
Velocity and yaw angular rate
Set the velocity in NED coordinates and yaw. Not available for fixed-wing aircraft.
Velocity and yaw
Start offboard control.
(message has no fields)
Stop offboard control. The vehicle will be put into Hold mode: https://docs.px4.io/en/flight_modes/hold.html
(message has no fields)
Type for acceleration commands in NED (North East Down) coordinates.
Used in: ,
Acceleration North (in metres/second^2)
Acceleration East (in metres/second^2)
Acceleration Down (in metres/second^2)
Type for actuator control. Control members should be normed to -1..+1 where 0 is neutral position. Throttle for single rotation direction motors is 0..1, negative range for reverse direction. One group support eight controls. Up to 16 actuator controls can be set. To ignore an output group, set all it controls to NaN. If one or more controls in group is not NaN, then all NaN controls will sent as zero. The first 8 actuator controls internally map to control group 0, the latter 8 actuator controls map to control group 1. Depending on what controls are set (instead of NaN) 1 or 2 MAVLink messages are actually sent. In PX4 v1.9.0 Only first four Control Groups are supported (https://github.com/PX4/Firmware/blob/v1.9.0/src/modules/mavlink/mavlink_receiver.cpp#L980).
Used in:
Control groups.
Eight controls that will be given to the group. Each control is a normalized (-1..+1) command value, which will be mapped and scaled through the mixer.
Used in:
Controls in the group
Type for attitude body angles in NED reference frame (roll, pitch, yaw and thrust)
Used in:
Roll angle (in degrees, positive is right side down)
Pitch angle (in degrees, positive is nose up)
Yaw angle (in degrees, positive is move nose to the right)
Thrust (range: 0 to 1)
Type for attitude rate commands in body coordinates (roll, pitch, yaw angular rate and thrust)
Used in:
Roll angular rate (in degrees/second, positive for clock-wise looking from front)
Pitch angular rate (in degrees/second, positive for head/front moving up)
Yaw angular rate (in degrees/second, positive for clock-wise looking from above)
Thrust (range: 0 to 1)
Result type.
Used in: , , , , , , , , , , ,
Result enum value
Human-readable English string describing the result
Possible results returned for offboard requests
Used in:
Unknown result
Request succeeded
No system is connected
Connection error
Vehicle is busy
Command denied
Request timed out
Cannot start without setpoint set
Request failed
Type for position commands in Global (Latitude, Longitude, Altitude) coordinates and yaw.
Used in:
Latitude (in degrees)
Longitude (in degrees)
altitude (in metres)
Yaw in degrees (0 North, positive is clock-wise looking from above)
altitude type for this position
Possible altitude options
Used in:
Altitude relative to the Home position
Altitude above mean sea level (AMSL)
Altitude above ground level (AGL)
Type for position commands in NED (North East Down) coordinates and yaw.
Used in: , ,
Position North (in metres)
Position East (in metres)
Position Down (in metres)
Yaw in degrees (0 North, positive is clock-wise looking from above)
Type for velocity commands in body coordinates.
Used in:
Velocity forward (in metres/second)
Velocity right (in metres/second)
Velocity down (in metres/second)
Yaw angular rate (in degrees/second, positive for clock-wise looking from above)
Type for velocity commands in NED (North East Down) coordinates and yaw.
Used in: , ,
Velocity North (in metres/second)
Velocity East (in metres/second)
Velocity Down (in metres/second)
Yaw in degrees (0 North, positive is clock-wise looking from above)