Go to the source code of this file.
Functions | |
| results (i, j) | |
| end | figure (i) hold off |
| plot (2 *pi *[1:steps]/steps, results(i,:)) | |
| 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] |
| Short Description. | |
| for each cols(each encoder | amplitudes ) |
| results = zeros(cols,steps) | |
| for | i |
| y = encData(:,i) - amplitudes(i) * cos(2*pi*encData(:,i)/ticksPerRevolution + phase) | |
| end [value, index] = min(results') | |
| phases = 2*pi * index/steps | |
| results2 = zeros(cols,steps) | |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Initial value: Definition at line 31 of file wheelFFT.m. |
|
|
Definition at line 1 of file wheelFFT.m. |
|
|
Initial value: size(encData) if rows < cols encData = encData' Long Description if necessary.
Definition at line 15 of file wheelFFT.m. Referenced by msg_init(). |
|
|
Definition at line 46 of file wheelFFT.m. |
|
|
Definition at line 1 of file wheelFFT.m. |
|
|
Initial value: wheelFFT(encData,steps,amplitudeMax) % function [phases, amplitudes] = trucksim(fencData,steps,amplitudeMax) % % determines phase and amplitudes on fr Definition at line 1 of file wheelFFT.m. |
|
|
Initial value: [1:cols]
for j = [1:steps]
phase = 2*pi * j/steps
Definition at line 35 of file wheelFFT.m. |
|
|
Definition at line 47 of file wheelFFT.m. |
|
|
Definition at line 32 of file wheelFFT.m. |
|
|
Definition at line 49 of file wheelFFT.m. |
|
|
Definition at line 1 of file wheelFFT.m. |
|
|
Definition at line 38 of file wheelFFT.m. Referenced by GuiClientFrame::OnSocket(). |
1.4.4