mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 13:37:34 +08:00
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 <maetugr@gmail.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
<!-- MOVED THIS TO v1.17
|
||||
|
||||
|
||||
@@ -149,6 +149,12 @@ The airplane needs to takeoff in manual mode at full throttle.
|
||||
Also, if the airplane crashes the state estimator might lose its fix.
|
||||
:::
|
||||
|
||||
## Simulation Configuration
|
||||
|
||||
### Wind
|
||||
|
||||
SIH supports setting a wind velocity with the PX4 parameters [`SIH_WIND_N`](../advanced_config/parameter_reference.md#SIH_WIND_E) and [`SIH_WIND_E`](../advanced_config/parameter_reference.md#SIH_WIND_E) [m/s]. The parameters can also be changed during flight to simulate changing wind.
|
||||
|
||||
## Display/Visualisation (optional)
|
||||
|
||||
The SIH-simulated vehicle can be displayed using [jMAVSim](../sim_jmavsim/index.md) as a visualiser.
|
||||
|
||||
Reference in New Issue
Block a user