do_figure_eight
PX4 capability domain: do-control. PX4 mapping: MAV_CMD_DO_FIGURE_EIGHT.
Fly a figure eight path as defined by the parameters. Set parameters to NaN/INT32_MAX (as appropriate) to use system-default values. The command is intended for fixed wing vehicles (and VTOL hybrids flying in fixed-wing mode), allowing POI tracking for gimbals that don’t support infinite rotation. This command only defines the flight path. Speed should be set independently (use e.g. MAV_CMD_DO_CHANGE_SPEED). Yaw and other degrees of freedom are not specified, and will be flight-stack specific (on vehicles where they can be controlled independent of the heading).
Request Params
Fixed value
px4Target PX4 device ID
Fixed value
do_figure_eightIdempotency key; repeated requests return the same command
Timeout in seconds, range
0~300Typed request payload for this command. Field names are generated from PX4 MAVLink XML labels, but callers do not send raw
param1..param7 fields.Meaning: Major Radius, units
m; maps to MAVLink parameter 1 in the PX4 frame.Meaning: Minor Radius, units
m; maps to MAVLink parameter 2 in the PX4 frame.Meaning: Orientation, units
rad; maps to MAVLink parameter 4 in the PX4 frame.Meaning: Latitude/X; maps to MAVLink parameter 5 in the PX4 frame.
Meaning: Longitude/Y; maps to MAVLink parameter 6 in the PX4 frame.
Meaning: Altitude/Z; maps to MAVLink parameter 7 in the PX4 frame.
PX4 Frame Mapping
- MAVLink command:
MAV_CMD_DO_FIGURE_EIGHT - Command ID:
35 - Default transport:
COMMAND_INT - Source XML:
common.xml - Completion:
COMMAND_ACK - Guard: real PX4 downlink is disabled by default; guarded mode requires explicit authorization and a ready transport.
Create Response
Platform command ID, used for follow-up queries
Acceptance status:
ACCEPTEDCommand acceptance time (UTC)
Query Response
Platform command ID
Execution status:
ACCEPTED / DELIVERED / SUCCEEDED / FAILED / TIMED_OUT / UNMATCHED_RESPONSEVendor identifier; fixed value
px4Target PX4 device ID
PX4 command type
Mapped
COMMAND_ACK.result valuePX4 acknowledgement summary
Raw PX4 acknowledgement summary, including MAVLink command ID and transport
PX4 ACK Mapping
After sending the frame, the PX4 agent waits forCOMMAND_ACK and correlates the response by command id. Disabled mode sends no frame and completes with a rejected lifecycle result.