Skip to content

Commit 88de402

Browse files
committed
autotune: update readme to include px4 automaneuvers as recommended strategy
1 parent 1a2a065 commit 88de402

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

autotune/README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,31 @@ python3 autotune.py
4040

4141
### Flight Maneuvers
4242

43-
Using default PX4 gains. Perform these maneuvers separately for each axis: roll, pitch, and yaw.
43+
Ensure your vehicle passes the pre-tuning test as outlined [here](https://docs.px4.io/main/en/config/autotune_fw.html#pre-tuning-test).
4444

45-
1. Requires valid airspeed measurement, and a correctly set FW_AIRSPD_TRIM.
46-
2. Fly in stabilized mode and start from level flight.
47-
3. Apply a manual sine chirp input (sine wave with increasing frequency) on the selected axis. Avoid any other control inputs simultaneously.
48-
4. For pitch and yaw: The amplitude of the input should not be too high, but should be enough to overcome noise.
49-
5. Repeat the maneuver a few times if necessary to capture good data.
45+
#### Use automated maneuvers (Recommended)
46+
47+
1. Configure your setup to use the PX4 autotune maneuvers without applying the identified gains online:
48+
49+
```
50+
FW_AT_APPLY = Do not apply the new gains (logging only)
51+
FW_AT_AXES = 7 # Enables maneuvers on all three axes (adjust as needed)
52+
FW_AT_SYSID_F1 = 10
53+
FW_AT_SYSID_TYPE = Logarithmic sine sweep
54+
```
55+
56+
2. Enable an [autotune switch](https://docs.px4.io/main/en/config/autotune_fw.html#enable-disable-autotune-switch) on your RC transmitter.
57+
3. Follow the procedure described [here](https://docs.px4.io/main/en/config/autotune_fw.html#auto-tuning-procedure) to perform the maneuvers.
58+
Since FW_AT_APPLY is set to logging only, step 5 of the procedure (applying new gains and testing) will not be executed.
59+
60+
#### Perform manual maneuvers
61+
62+
Perform these maneuvers separately for each axis: roll, pitch, and yaw.
63+
64+
1. Fly in stabilized mode and start from level flight.
65+
2. Apply a manual sine chirp input (sine wave with increasing frequency) on the selected axis. Avoid any other control inputs simultaneously.
66+
3. For pitch and yaw: The amplitude of the input should not be too high, but should be enough to overcome noise.
67+
4. Repeat the maneuver a few times if necessary to capture good data.
5068

5169
### Using the Tool
5270

0 commit comments

Comments
 (0)