Files
PX4-Autopilot/docs/en/modules/modules_simulation.md
T
Alex E 59fa7a4a7d docs(modules): add auto-generated disclaimer to every module reference page (#29673)
Only modules_main.md told readers that the module reference is generated
from source. The per-category pages (modules_driver.md, modules_system.md,
...) and the per-subcategory pages (modules_driver_imu.md, ...) had no such
note, so contributors kept fixing typos directly in docs/en/modules/ and
the next metadata sync silently reverted them (see #29614).

Emit a `::: info` block right under the H1 of every category and
subcategory page. The wording follows the existing disclaimers on the
airframe reference and the uORB message index: it links to the generator
script and names the `make module_documentation` target.

docs/en/modules/*.md are regenerated with the updated generator and run
through Prettier, mirroring what the docs-orchestrator metadata sync does
on main, so the diff is only the new note.

Fixes #29624

Assisted-by: Claude:claude-fable-5-1

Signed-off-by: Alex E <aelejandro9@gmail.com>
2026-11-10 08:51:33 +11:00

1.3 KiB

Modules Reference: Simulation

::: info This page is auto-generated from the source code using the build command: make module_documentation. Do not edit it directly; fix the module documentation in the PX4-Autopilot source instead. :::

simulator_sih

Source: modules/simulation/simulator_sih

Description

This module provides a simulator for quadrotors and fixed-wings running fully inside the hardware autopilot.

This simulator subscribes to "actuator_outputs" which are the actuator pwm signals given by the control allocation module.

This simulator publishes the sensors signals corrupted with realistic noise in order to incorporate the state estimator in the loop.

Implementation

The simulator implements the equations of motion using matrix algebra. Quaternion representation is used for the attitude. Forward Euler is used for integration. Most of the variables are declared global in the .hpp file to avoid stack overflow.

Usage

simulator_sih <command> [arguments...]
 Commands:
   start

   stop

   status        print status info