diff options
| author | Albin <albwa833@student.liu.se> | 2019-11-07 16:47:09 +0100 |
|---|---|---|
| committer | Albin <albwa833@student.liu.se> | 2019-11-07 16:47:09 +0100 |
| commit | fa7b4bf990ac16b58b06f9fbf1356a76f60d4c96 (patch) | |
| tree | 7692585f0061430fbec81e2e04ec052723a349de /Kod/bilbana/yc4/choose_position.m | |
| parent | 11b47c710d1521f5b4c1193274f2b1e25b96645b (diff) | |
| download | tfyy51-fa7b4bf990ac16b58b06f9fbf1356a76f60d4c96.tar.gz | |
Nu funkar inget
Diffstat (limited to 'Kod/bilbana/yc4/choose_position.m')
| -rw-r--r-- | Kod/bilbana/yc4/choose_position.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kod/bilbana/yc4/choose_position.m b/Kod/bilbana/yc4/choose_position.m index 035d6e3..312990c 100644 --- a/Kod/bilbana/yc4/choose_position.m +++ b/Kod/bilbana/yc4/choose_position.m @@ -4,12 +4,11 @@ function [new_position, seg_plus] = choose_position(position,segment, track) % givare missats. Sedan väljs position efter vilken givare det var som % passerades. seg_plus anger om och med hur mycket car.segment bör % justeras för att kompensera efter missad givare. -track_len = [19.60 2.53 3.05 4.73 7.68 8.98 10.93 14.96 17.57; +track_len = [0 2.53 3.05 4.73 7.68 8.98 10.93 14.96 17.57; 0 0 0 0 0 0 0 0 0]; set_pos = [0 2.53 3.05 4.73 7.68 8.98 10.93 14.96 17.57; 0 0 0 0 0 0 0 0 0]; pos_c = position; -pos_i = track_len( track, segment); %% Vilken givare ligger närmast pos_c? near = []; for i = 1:length(track_len) |
