Autotune - make the conditional code simpler (#24564)

This commit is contained in:
Hamish Willee
2025-03-19 19:33:33 +11:00
committed by GitHub
parent e63b09da63
commit bd0a59eb1f
+11 -1
View File
@@ -94,7 +94,17 @@ The test steps are:
4. The drone will first start to perform quick roll motions followed by pitch and yaw motions. 4. The drone will first start to perform quick roll motions followed by pitch and yaw motions.
The progress is shown in the progress bar, next to the _Autotune_ button. The progress is shown in the progress bar, next to the _Autotune_ button.
5. <div style="display: inline;" v-if="$frontmatter.frame === 'Multicopter'">Manually land and disarm to apply the new tuning parameters. Takeoff carefully and manually test that the vehicle is stable.</div><div v-else-if="$frontmatter.frame === 'Plane'">The tuning will be immediately/automatically be applied and tested in flight (by default). PX4 will then run a 4 second test and revert the new tuning if a problem is detected.</div> <div style="display: inline;" v-if="$frontmatter.frame === 'Multicopter'">
5. Manually land and disarm to apply the new tuning parameters.
Takeoff carefully and manually test that the vehicle is stable.
</div><div v-else-if="$frontmatter.frame === 'Plane'">
5. The tuning will be immediately/automatically be applied and tested in flight (by default).
PX4 will then run a 4 second test and revert the new tuning if a problem is detected.
</div>
::: warning ::: warning
If any strong oscillations occur, land immediately and follow the instructions in the [Troubleshooting](#troubleshooting) section below. If any strong oscillations occur, land immediately and follow the instructions in the [Troubleshooting](#troubleshooting) section below.