Skip to content

feat: PX4Multirotor performance and lockstep improvements DTSW-7714#8

Merged
Tuxliri merged 1 commit intomainfrom
feat/lockstep-timeout-rk4-DTSW-7714
Apr 7, 2026
Merged

feat: PX4Multirotor performance and lockstep improvements DTSW-7714#8
Tuxliri merged 1 commit intomainfrom
feat/lockstep-timeout-rk4-DTSW-7714

Conversation

@Tuxliri
Copy link
Copy Markdown

@Tuxliri Tuxliri commented Apr 7, 2026

  • Add fixed-step RK4 integrator to Multirotor base class (7x faster than solve_ivp for small timesteps, identical accuracy at dt<=4ms). PX4Multirotor enables it by default.

  • Precompute IMU measurements once per step and pass to HIL messages, avoiding redundant computation.

  • Add configurable lockstep_timeout parameter (default 0.002s) with retry loop in _fetch_latest_px4_control. Allows DTPS bridge mode to use longer timeouts for higher-latency round trips.

  • Add per-step timing instrumentation (printed every 500 steps).

- Add fixed-step RK4 integrator to Multirotor base class (7x faster
  than solve_ivp for small timesteps, identical accuracy at dt<=4ms).
  PX4Multirotor enables it by default.

- Precompute IMU measurements once per step and pass to HIL messages,
  avoiding redundant computation.

- Add configurable lockstep_timeout parameter (default 0.002s) with
  retry loop in _fetch_latest_px4_control. Allows DTPS bridge mode
  to use longer timeouts for higher-latency round trips.

- Add per-step timing instrumentation (printed every 500 steps).
@Tuxliri Tuxliri changed the title feat: PX4Multirotor performance and lockstep improvements feat: PX4Multirotor performance and lockstep improvements DTSW-7714 Apr 7, 2026
@Tuxliri Tuxliri merged commit 33fb946 into main Apr 7, 2026
6 of 10 checks passed
@Tuxliri Tuxliri deleted the feat/lockstep-timeout-rk4-DTSW-7714 branch April 7, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant