From fa2d1c36622cf8b2cb298df0e90ee90f36ad5f01 Mon Sep 17 00:00:00 2001 From: Balduin Date: Thu, 5 Mar 2026 08:53:39 +0100 Subject: [PATCH] SIH Simulator: Add wind (#26467) * SIH: explicitly use local velocity for all aerodynamic calculations no functional change * SIH: add param & vars for wind and apparent vel no functional change * SIH: replace all relevant vels with apparent vel Only places where _v_E is remaining: - ecefToNed to calculate _v_N - generate_rover_ackermann_dynamics - equations_of_motion - parameters_updated, init_variables and _v_N: - ecefToNed - print_status - publish_ground_truth - generate_rover_ackermann_dynamics - equations_of_motion - parameters_updated, init_variables which are all not relevant for aerodynamics. * sih: wind review suggestions * sih wind: switch direction to global wind source direction convention * SIH: clean up variable declarations * SIH: rename variables for consistency * docs: SIH: document new wind parameters * Release notes: note for SIH wind settings --------- Co-authored-by: Matthias Grob --- docs/en/releases/main.md | 2 +- docs/en/sim_sih/index.md | 6 +++ src/modules/simulation/simulator_sih/sih.cpp | 24 ++++++---- src/modules/simulation/simulator_sih/sih.hpp | 45 +++++++++++-------- .../simulation/simulator_sih/sih_params.c | 16 +++++++ 5 files changed, 65 insertions(+), 28 deletions(-) diff --git a/docs/en/releases/main.md b/docs/en/releases/main.md index 8e06078324..0370808ba8 100644 --- a/docs/en/releases/main.md +++ b/docs/en/releases/main.md @@ -59,7 +59,7 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### Simulation -- TBD +- SIH: Add option to set wind velocity ([PX4-Autopilot#26467](https://github.com/PX4-Autopilot/pull/26467))