Skip to content

Configuration

Find the file that owns a setting and when changes take effect.

Where to change a setting

Setting Canonical file or directory
Shared ROS distribution config/runtime/common.env
SITL model, estimator, GCS and DDS config/runtime/sitl.env
Hardware DDS, Vicon and transforms config/runtime/hardware.env
Vehicle mass, inertia and propulsion config/vehicles
Offboard SE3 gains and timing controller.yaml
Onboard SE3 gains and trajectories Native PX4 SE3_* / TRJ_* parameters and MPC_THR_HOVER
ROS Offboard trajectory segments and names trajectories.yaml
Native SE3 trajectory geometry and durations PX4 firmware TRJ_* parameters (QGroundControl or PX4 param shell)
Offboard staging offboard.yaml
Ordered launch study config/sequences
PX4 topic symbols config/px4_topics.def
Recorded topic selection Shared config/recording: common.txt plus the selected profile
External repository revisions config/sources
Tested tool versions config/versions.env

Selection and when changes take effect

Environment wrappers source their .env files when invoked. Changing a file does not update an already-running tmux process. Stop/restart at an appropriate time to apply service changes; do not stop a flight's required communication as a configuration shortcut.

The standard ROS 2 Offboard SE3 launch reads source controller, vehicle, and trajectory YAML from the toolkit checkout, then applies launch selections. Restart the controller after changing this YAML; no ROS rebuild is needed. A standalone installation without the checkout uses packaged YAML. The vehicle guide distinguishes controller-data selection from simulator/PX4 airframe selection.

Native parameters live in PX4, not toolkit configuration files. Set them in PX4's shell or QGroundControl, verify the values while disarmed, and explicitly save them when persistence is required. See Onboard control.

Changes to config/trajectories.yaml affect ROS Offboard controllers at their next launch. Native trajectories use independent firmware TRJ_* parameters. Circle, figure-eight, and steps settings are snapshotted on request; an active setpoint follows live TRJ_SP_* edits. Both use absolute PX4 local NED; verify the coordinate origin before flight.

Sequences select launches and their arguments; the runner overrides recording output for its study. It does not change gains or calibrations. Controller launch-owned recordings snapshot their selected experiment configuration in experiment.json, so analysis can use recorded settings rather than current source YAML. Independent tools/px4_record recordings contain only profile/topic metadata; preserve the native parameter values and firmware revision separately. See Recording for the two contracts.

Missing data and source pins

Vehicle data requirements are listed under Offboard SE3. Native SE3 reads PX4 parameters rather than ROS vehicle YAML. Set Vicon addresses and devices in config/runtime/hardware.env.

config/sources/px4.env selects the PX4 repository and ref for new installations; config/sources/*.repos pins the other fetched repositories. Existing PX4 checkouts are not reset automatically. config/versions.env records tool versions and managed download pins. See Native SITL and Companion installation.

See Troubleshooting when a valid configuration still behaves unexpectedly.