Go to the source code of this file.
Functions | |
| encDot (2:rows,:) | |
| fvtool (h2, 1)%filter encDot b | |
| figure (i+cols *2) hold off | |
| plot (encData(:, i), encDot(:, i),'-r') | |
| results (i, j) | |
| end | figure (i) hold off |
| plot (2 *pi *[1:steps]/steps, results(i,:)) | |
| figure (9) | |
| plot (encData(:, 1), encDot(:, 1),'-r') | |
| plot (encData(:, 1), y,'-b') | |
| plot (encData(:, 1), encDot(:, 1)-y,'-k') | |
| plot ([1:rows], encDot(:, 1).*y,'-k') | |
| results2 (i, j) | |
| end | figure (i+cols) hold off |
| plot (amplitudeMax *[1:steps]/steps, results2(i,:)) | |
Variables | |
| function [phases, amplitudes] | |
| fl | |
| br | |
| bl returns phases of wheels and amplitudes of wheels such | that |
| make sure cols are data for each | encoder [rows, cols] |
| n = 100 | |
| f = [0, 0.03, 0.12, 1] | |
| a = [0,1,0] | |
| up = [ 0.01, 1.1, 0.1] | |
| lo = [-0.01, 0.9, -0.1] | |
| h1 = fircls(n,f,a,up,lo) | |
| h2 = fir1(n,f) | |
| for | i |
| x = filter(h2,1,encData(:,i)) | |
| hold | on |
| end make a avg of each row of data | encAvg = sum(encData,2) / cols |
| for each cols(each encoder | amplitudes ) = ones(cols,1) |
| results = zeros(cols,steps) | |
| results2 = zeros(cols,steps) | |
| y = encDot(:,i) - cos(2*pi*encData(:,i)/ticksPerRevolution + phase) | |
| end [value, index] = min(results') | |
| phases = 2*pi * index/steps | |
| hold | off |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 29 of file wheelPLL.m. Referenced by main(). |
|
|
Definition at line 65 of file wheelPLL.m. |
|
|
Definition at line 1 of file wheelPLL.m. |
|
|
Definition at line 57 of file wheelPLL.m. |
|
|
Initial value: size(encData) if rows < cols encData = encData' Definition at line 15 of file wheelPLL.m. |
|
|
Definition at line 80 of file wheelPLL.m. |
|
|
Definition at line 28 of file wheelPLL.m. Referenced by Joystick::display(), display(), main(), fhwInterface::setAdjustedSCPower(), hwInterface::setAdjustedSCPower(), and setAdjustedSCPower(). |
|
|
Definition at line 1 of file wheelPLL.m. |
|
|
Initial value: wheelPLL(encData,steps,amplitudeMax) % function [frP,flP,brP,blP] = trucksim(fr,fl,br,bl) % % determines phase and amplitudes on fr Definition at line 1 of file wheelPLL.m. |
|
|
Definition at line 32 of file wheelPLL.m. |
|
|
Definition at line 37 of file wheelPLL.m. |
|
|
Initial value: Definition at line 42 of file wheelPLL.m. |
|
|
Definition at line 31 of file wheelPLL.m. |
|
|
Definition at line 27 of file wheelPLL.m. Referenced by main(). |
|
|
Definition at line 84 of file wheelPLL.m. |
|
|
Definition at line 48 of file wheelPLL.m. |
|
|
Definition at line 81 of file wheelPLL.m. |
|
|
Definition at line 66 of file wheelPLL.m. |
|
|
Definition at line 67 of file wheelPLL.m. |
|
|
Definition at line 1 of file wheelPLL.m. |
|
|
Definition at line 30 of file wheelPLL.m. |
|
|
Definition at line 44 of file wheelPLL.m. Referenced by GuiClientFrame::OnSocket(). |
|
|
Definition at line 72 of file wheelPLL.m. |
1.4.4