Skip to content

Instantly share code, notes, and snippets.

@dakejahl
dakejahl / sih-world-proposal.md
Created April 4, 2026 19:46
Proposal: SIH World Files for Lightweight SITL Flight Testing

Proposal: SIH World Files for Lightweight SITL Flight Testing

Problem

PX4's lightweight SIH (Simulator in Hardware) SITL runs physics and sensors entirely inside PX4 — no Gazebo, no GPU, 30MB Docker image. It's fast and CI-friendly, but currently simulates an empty, flat world. This limits what flight behaviors can be tested.

Meanwhile, PX4's SITL test coverage has significant gaps in environment-dependent behaviors: terrain following, collision prevention, geofence recovery, GPS denial, and more. These gaps exist largely because the test infrastructure lacks a way to describe the environment the vehicle operates in.

Proposal

# Decompile
dtc -I dtb -O dts -o devicetree.dts /boot/dtb/<your_devicetree_file_name>.dtb
# Compile
dtc -I dts -O dtb devicetree.dts -o <your_devicetree_file_name>.dtb
# Merge with DTBO
fdtoverlay -i modified-base.dtb -o modified-full.dtb /boot/tegra194-p3668-all-p3509-0000-user-custom.dtbo
# DTS from fs