Skip to content

Commit 0f04472

Browse files
added clarification of what the pid tuning simulation simulates
1 parent 2fb6179 commit 0f04472

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/section-7/feedback-control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ double calculate(double currentPosition, double targetPosition) {
5757
```
5858
!!! warning
5959
The code excerpt is only meant to show how PID works. This is not how we actually implement PID, but should give you a better idea of the inner workings of PID.
60-
60+
6161
For those that know calculus, the formal definition of PID control is:
6262

6363
$$ u(t) = K_{p}e(t) + \int_{0}^{t}e(\tau)d\tau + K_{d}\frac{de}{dt} $$
@@ -79,7 +79,7 @@ In general, the "optimal" PID controller gets the error to zero as fast as possi
7979

8080
To get those ideal constants... you kind of just guess and check. WPILIB provides a nice simulation of how it is like to tune these constants.
8181
### [Click here to try tuning a PID Controller. SCROLL TO "PURE FEEDBACK CONTROL", SKIP EVERYTHING ELSE](https://docs.wpilib.org/en/stable/docs/software/advanced-controls/introduction/tuning-flywheel.html)
82-
Follow the instructions and see if you can get the optimal tuning solution. **DO NOT SKIP THIS PRACTICE**
82+
Follow the instructions and see if you can get the optimal tuning solution. The model simulates a flywheel shooter mechanism and halfway through the simulation it shoots a ball. **DO NOT SKIP THIS PRACTICE**
8383

8484
## Other constants/terms
8585

0 commit comments

Comments
 (0)