Skip to content

Commit 554e762

Browse files
committed
README layout fix
1 parent 0194f14 commit 554e762

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -563,21 +563,21 @@ In order to get optimal performance you will have to fiddle a bit with with the
563563

564564
#### Control theory lovers corner :D
565565
Transfer funciton of the PI contorller this library implements is:
566-
<img src="./extras/Images/cont_PI.png" />
566+
<p><img src="./extras/Images/cont_PI.png" /></p>
567567
Continiuos PI is discretized using Tustin transform. The final discrete equation becomes:
568-
<img src="./extras/Images/dis_PI.png" />
568+
<p><img src="./extras/Images/dis_PI.png" /></p>
569569
Where the <i>u(k)</i> is the control signal (voltage <i>U<sub>q</sub></i> in our case) in moment <i>k</i>, <i>e(k),e(k-1)</i> is the tracking error in current moment <i>k</i> and previous step <i>k-1</i>. Tracking error presents the difference in between the target velocity value <i>v<sub>d</sub></i> and measured velocity <i>v</i>.
570-
<img src="./extras/Images/track.png" />
570+
<p><img src="./extras/Images/track.png" /></p>
571571

572572
Transfer funciton of the Low pass filter is contorller is:
573-
<img src="./extras/Images/cont_LPF.png" />
573+
<p><img src="./extras/Images/cont_LPF.png" /></p>
574574
In it discrete form it becomes:
575-
<img src="./extras/Images/dis_LPF.png" />
575+
<p><img src="./extras/Images/dis_LPF.png" /></p>
576576
where <i>v<sub>f</sub>(k)</i> is filtered velocity value in moment <i>k</i>, <i>v(k)</i> is the measured velocity in the moment <i>k</i>, <i>T<sub>f</sub></i> is the filter time constant and <i>T<sub>s</sub></i> is the sampling time (or time in between executions of the equation).
577577
This low pass filter can be also written in the form:
578-
<img src="./extras/Images/LPF_alpha.png" />
578+
<p><img src="./extras/Images/LPF_alpha.png" /></p>
579579
where:
580-
<img src="./extras/Images/alpha.png" />
580+
<p><img src="./extras/Images/alpha.png" /></p>
581581
This makes it a bit more clear what the time constat `Tf` of the Low pass filter stands for. If your sample time is around 1millisecond (for arduino UNO this can be taken as an average) then setting the
582582
`Tf` value to `Tf = 0.01` will result in:
583583
```cpp

0 commit comments

Comments
 (0)