Troubleshooting PX4 Offboard mode starts with three separate checks: the companion-computer link, PX4’s Offboard proof-of-life stream, and the requirements for entering the mode. A MAVLink connection or HEARTBEAT confirms a link, but does not replace the setpoints or ROS 2 control-mode messages PX4 requires.
Think of mode entry as a sequence of checks: establish the companion-computer link, confirm PX4 receives the right Offboard messages, request the mode, then verify the vehicle enters and stays in it. A failure at any stage can look like a failed mode switch unless you inspect each transition separately.
For MAVLink control, supported setpoint messages provide both the control target and the proof-of-life signal. For direct ROS 2 control, the keep-alive is a stream of OffboardControlMode messages, while the desired setpoint is published separately, for example through TrajectorySetpoint. A HEARTBEAT is not either of these. PX4 documents a continuous 2 Hz proof-of-life signal that must already be active before Offboard entry. The configured loss timeout controls the response to missing messages. Check the documentation for the installed PX4 release; do not turn an example’s startup delay into a universal mode-entry requirement. See the PX4 Offboard mode documentation.
That distinction determines the first diagnostic question: did the request fail, or did PX4 accept Offboard and then exit because the stream stopped, the required estimate was unavailable, or a failsafe intervened? For a flight controller and companion computer integrated in one unit, such as the Helios FMU, the serial link and the Offboard stream are still separate things to verify.
Release-specific check: the PX4 v1.17 Offboard guide explicitly requires an incoming stream faster than 2 Hz and describes a startup interval exceeding one second. The development-branch guide describes stream readiness and the configured loss timeout differently. Use the documentation matching the installed release; do not treat exactly 2 Hz or one example’s startup counter as a reliable setting for every version. Verify the received message timing, including gaps, rather than only the publisher’s nominal rate.
Verify the companion-computer link before debugging mode entry
- Confirm the transport. For serial, check the port, wiring and baud rate at both ends. For a network connection, confirm addressing and that packets reach the intended interface. Do not assume a reachable companion computer means the flight-controller link is working.
- Check routing and identity. Verify that the MAVLink router or client is connected to the correct endpoint, and record the source and target system/component IDs. A heartbeat from another system or a misrouted command can mislead initial checks.
- Confirm vehicle messages arrive. Check that the client receives the vehicle’s heartbeat and identify its system/component IDs. Then inspect whether expected status and telemetry messages also arrive consistently.
- Record what the client sees. For MAVROS, note connection state, relevant topics and service responses; for MAVSDK, record connection and command results; for a direct MAVLink client, log message types, IDs, timestamps and acknowledgements. A connected state alone does not show that setpoints are reaching PX4.
- Separate link testing from mode testing. First establish reliable flight-controller communication. Then start and inspect the Offboard proof-of-life stream before requesting the mode.
Use the port mapping and serial configuration documented for the exact flight-controller board and PX4 release. Do not copy ArduPilot SERIALx settings into PX4: firmware-specific parameter names and values are not interchangeable.
Confirm access to the companion computer separately from access to PX4. Record the operating-system image, network configuration and controller connection used in the installation; do not assume a default address or device path from another firmware or hardware revision.
Confirm PX4 is receiving the right Offboard proof-of-life continuously
PX4 requires a supported Offboard stream before mode entry and while the vehicle remains in Offboard. The failure mechanism is straightforward: if the required message does not arrive, or its rate falls below the documented threshold, PX4 cannot treat the external controller as active. The configured timeout and response are governed by parameters including COM_OF_LOSS_T and COM_OBL_RC_ACT. Check the values on the specific vehicle rather than assuming defaults. See the Offboard requirements and timeout behaviour.
In a MAVLink workflow, inspect the actual setpoint message type, destination IDs, frame and fields, plus its timestamps and arrival rate at the flight controller. A separate heartbeat does not substitute for these setpoints. Confirm the message and values are supported for the vehicle and firmware. For a practical reference, compare your implementation with the PX4 MAVROS Offboard example.
In a direct ROS 2 workflow, inspect OffboardControlMode separately from the setpoint topic. Confirm that timestamps advance, messages arrive continuously, and the selected control-mode flag matches the control quantity and required estimate. PX4’s example streams OffboardControlMode and TrajectorySetpoint, then requests Offboard after an initial stream; its guidance also describes an approximately 2 Hz threshold for the control-mode stream. See the PX4 ROS 2 Offboard control example.
A live control-mode stream does not prove that setpoints are fresh. In direct ROS 2 control, supervise both streams in the application. Match the selected control level to the topics being written, and follow the release-specific rules for when those topics may be published; conflicting internal and external commands can cause unexpected behavior. Check coordinate frames explicitly: the PX4 example uses NED, while many ROS applications use ENU, and publishing a topic does not automatically convert between them. See the ROS 2 example and frame conventions.
For either path, log publication time and reception time if available. Compare the sender’s output with messages observed at PX4, so you can distinguish a publisher that has stalled from a transport that is dropping or delaying messages.
If PX4 rejects the mode request, separate command failure from failsafe
- Capture the acknowledgement. Record the mode-change command and its acknowledgement or result, including timestamps and target IDs. A sent request is not evidence that PX4 accepted it.
- Check the resulting vehicle state. Inspect reported navigation state, arming state and status messages immediately before and after the request. Determine whether Offboard was never entered or was entered briefly and then left.
- Read the event or console output. Match messages to the same time window as the request. They may identify a missing Offboard signal, unavailable estimate, rejected transition or failsafe action.
- Check prerequisites for the selected setpoint. PX4 requires different valid estimates according to the control type. For example, position control needs a valid position estimate; inspect estimator status and the flags selected in ROS 2 rather than treating every rejection as a link problem.
- Review arming and safety configuration. Check the vehicle’s arming checks and configured failsafe behaviour for that firmware and airframe. Use the current PX4 safety and failsafe configuration documentation, and avoid changing safety parameters simply to suppress a symptom.
A rejected request and an accepted request followed by an immediate exit are different diagnoses. In the first case, investigate command acceptance and mode requirements. In the second, investigate the continued proof-of-life stream and the event or failsafe that followed entry. PX4 documents the Offboard-loss timeout and configured response in its Offboard mode behaviour.
Use a minimal reproduction and a complete log to pinpoint intermittent failures
- Start in SITL. Record message timing, command results and reported state using the smallest reproduction.
- Continue with a controlled hardware bench test. Follow the manufacturer’s bench procedures, remove propellers and prevent unintended actuator movement. Check transport, configuration and estimator readiness separately. A passing simulation does not verify hardware behavior.
Keep the first reproduction small: establish the stream, request Offboard, and log whether the vehicle enters and stays in the mode. Then add application components one at a time. Include the exact PX4 release and airframe, ROS 2 and MAVROS or SDK versions, transport and relevant parameters, setpoint code and publication rate, timestamps, command acknowledgements, vehicle status and relevant logs.
Do not carry PX4 assumptions into ArduPilot: its Guided-mode procedures and semantics are separate. Check the relevant vehicle documentation, such as the ArduPilot Copter Guided Mode guide.
Frequently asked questions
No. PX4 requires supported MAVLink setpoint messages or ROS 2 OffboardControlMode messages as the Offboard proof-of-life stream. A ground-station heartbeat indicates a MAVLink connection, but it does not replace that stream. See the PX4 Offboard documentation.
Yes. SITL can help verify your message sequence, mode request and application logic before hardware integration. Compare the same minimal test with the hardware setup afterwards, because simulation does not by itself verify physical transport or vehicle-specific estimator and safety behaviour.
Include the exact PX4 release, airframe and MAVROS version, along with ROS version, transport, setpoint message type and rate, timestamps, command acknowledgement, vehicle status and relevant logs. Also note whether the request was rejected or Offboard was entered and then exited.
For teams bringing up a companion-computer integration, Sky Pulse’s Helios FMU product reference can help clarify the hardware interface. For interface or compatibility questions, contact Sky Pulse engineering.
For context on selecting the autopilot platform before configuring an external controller, read how to choose a flight controller for PX4 and ArduPilot.