Skip to content

Commit

Permalink
change PID formula from gif to markdown math block
Browse files Browse the repository at this point in the history
  • Loading branch information
cubix2ray authored and braincore committed Feb 12, 2023
1 parent 3b03e67 commit 60e07b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ assert_eq!(output.d, -10.0);
There are several different formulations of PID controllers. This library
uses the independent form:

![PID independent form](
https://latex.codecogs.com/gif.latex?C(t)&space;=&space;&space;K_p&space;\cdot&space;e(t)&space;+&space;K_i&space;\cdot&space;\int{e(t)dt}&space;-&space;K_d&space;\cdot&space;\frac{dP(t)}{dt})
```math
C(t) = K_p \cdot e(t) + K_i \cdot \int{e(t)dt} - K_d \cdot \frac{dP(t)}{dt}
```

where:
- C(t) = control output, the output to the actuator.
Expand Down

0 comments on commit 60e07b9

Please sign in to comment.