Skip to content

Commit 4689a93

Browse files
authored
Merge pull request #17 from Open-UAS/sanupind0728-patch-2-1
2 parents 9174867 + d111fd5 commit 4689a93

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/Electrical/Tuning.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PX-4 PID Tuning
22

3-
This page talks about tuning the controller gains in PX-4. This is essential for pilots seeking certain flight characteristics such as increased responsiveness to controller inputs.
3+
This page talks about tuning the controller gains in PX-4. This is essential for pilots seeking certain flight characteristics, such as increased responsiveness to controller inputs.
44

55
We have been using the same guidelines as [PX-4's Tuning Guide](https://docs.px4.io/main/en/config_fw/pid_tuning_guide_fixedwing.html) and we recommend following the same process. Here we have added some more information and lessons learnt.
66

@@ -12,10 +12,13 @@ The PID controller has gains, or constant multipliers, corresponding to three ca
1212

1313
*Proportional*: This gain is proportional to the error signal. Increasing the P gain will proportionally send a larger correcting signal if there is a large current error.
1414

15-
*Integral*: This gain is proportional to the *integral* of the error signal. Essentially it corresponds to a large signal if the cumulative error is large.
15+
*Integral*: This gain is proportional to the *integral* of the error signal. Essentially, it corresponds to a large signal if the cumulative error is large.
1616

1717
*Derivative*: This gain is proportional to the derivative of the error. It contributes to a signal that is proportional to the instantaneous rate of change of error which it finds as the difference between the current and previous error.
1818

1919
## Pitch tuning process
2020

21-
For a fixed wing aircraft, tuning the pitch (nose up and down) might be the simplest because it is
21+
Pitch tuning focuses on adjusting the controller gains so that the aircraft responds smoothly and accurately to pitch commands. The process typically begins by tuning the **proportional (P) gain**, which determines how strongly the controller reacts to a pitch error. Increasing the P gain makes the aircraft respond faster to pitch commands such as climbs or descents. However, if the gain becomes too high, the aircraft may begin to oscillate in pitch, so the value should be increased gradually until the response is quick but still stable.
22+
23+
After the P gain is set, the **derivative (D) gain** can be adjusted to help damp oscillations and reduce overshoot when the aircraft approaches the desired pitch angle. Finally, a small **integral (I) gain** can be introduced to correct steady-state errors, such as the aircraft slowly drifting away from the commanded pitch attitude. The integral term accumulates small errors over time and helps the aircraft maintain the desired pitch angle during steady flight.
24+

0 commit comments

Comments
 (0)