summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/choose_position.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4/choose_position.m')
-rw-r--r--Kod/bilbana/yc4/choose_position.m3
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)