Kode Taker 2018
Dependencies: mbed PS_PAD encoderKRAI Motor_1 millis
pidTune.m.txt@0:8c6f29487664, 2018-07-03 (annotated)
- Committer:
- gatulz
- Date:
- Tue Jul 03 05:45:18 2018 +0000
- Revision:
- 0:8c6f29487664
TAKER DENGAN JOYSTICK KABEL
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gatulz | 0:8c6f29487664 | 1 | %Definisi sistem dan inisiasi |
gatulz | 0:8c6f29487664 | 2 | s=tf('s'); |
gatulz | 0:8c6f29487664 | 3 | |
gatulz | 0:8c6f29487664 | 4 | %Sistem |
gatulz | 0:8c6f29487664 | 5 | %y(t) = A(1-EXP(-t/T)) -> Y(s) = A(v(s)) |
gatulz | 0:8c6f29487664 | 6 | % https://www.symbolab.com/solver/laplace-calculator |
gatulz | 0:8c6f29487664 | 7 | y=(14/s)-(1260/(90*s+1)) |
gatulz | 0:8c6f29487664 | 8 | x=0.6*(1/s); %pwm*(1/s) |
gatulz | 0:8c6f29487664 | 9 | h=y/x; |
gatulz | 0:8c6f29487664 | 10 | |
gatulz | 0:8c6f29487664 | 11 | pidTuner(h) |