You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -563,21 +563,21 @@ In order to get optimal performance you will have to fiddle a bit with with the
563
563
564
564
#### Control theory lovers corner :D
565
565
Transfer funciton of the PI contorller this library implements is:
566
-
<imgsrc="./extras/Images/cont_PI.png" />
566
+
<p><imgsrc="./extras/Images/cont_PI.png" /></p>
567
567
Continiuos PI is discretized using Tustin transform. The final discrete equation becomes:
568
-
<imgsrc="./extras/Images/dis_PI.png" />
568
+
<p><imgsrc="./extras/Images/dis_PI.png" /></p>
569
569
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
-
<imgsrc="./extras/Images/track.png" />
570
+
<p><imgsrc="./extras/Images/track.png" /></p>
571
571
572
572
Transfer funciton of the Low pass filter is contorller is:
573
-
<imgsrc="./extras/Images/cont_LPF.png" />
573
+
<p><imgsrc="./extras/Images/cont_LPF.png" /></p>
574
574
In it discrete form it becomes:
575
-
<imgsrc="./extras/Images/dis_LPF.png" />
575
+
<p><imgsrc="./extras/Images/dis_LPF.png" /></p>
576
576
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).
577
577
This low pass filter can be also written in the form:
578
-
<imgsrc="./extras/Images/LPF_alpha.png" />
578
+
<p><imgsrc="./extras/Images/LPF_alpha.png" /></p>
579
579
where:
580
-
<imgsrc="./extras/Images/alpha.png" />
580
+
<p><imgsrc="./extras/Images/alpha.png" /></p>
581
581
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
0 commit comments