summaryrefslogtreecommitdiffstats
path: root/Kod
diff options
context:
space:
mode:
authorMattias Uvesten <matuv053@student.liu.se>2019-11-13 18:07:08 +0100
committerMattias Uvesten <matuv053@student.liu.se>2019-11-13 18:07:08 +0100
commit39117fca7d32e4930867f4caf3100bf9df64ac33 (patch)
tree7f6f504efd8214bf5847f6b4539681af8bac9110 /Kod
parenta84a3c9a66347c9fe9c5d81b232ee8081d4498ca (diff)
downloadtfyy51-39117fca7d32e4930867f4caf3100bf9df64ac33.tar.gz
missar just nu givare med 0.05 sannolikhet
Diffstat (limited to 'Kod')
-rw-r--r--Kod/bilbana/yc4/main.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kod/bilbana/yc4/main.m b/Kod/bilbana/yc4/main.m
index c0ed11e..3c1b445 100644
--- a/Kod/bilbana/yc4/main.m
+++ b/Kod/bilbana/yc4/main.m
@@ -51,7 +51,7 @@ car2.seg_times = [];
car2.position = 0;
car2.seg_len = [0.0 2.53 3.05 4.92 7.60 8.84 10.65 14.68 17.76];
car2.map = Bana2;
-car2.miss_probability = 0.0;
+car2.miss_probability = 0.05;
t = 0;
highToc = 0;
@@ -82,7 +82,7 @@ else
car2.running = false;
end
-
+ref_time = 13;
%% MAIN LOOP
while 1
readTime = tic;
@@ -139,10 +139,10 @@ matlabclient(3);
%% DISPLAY GRAPHS
if car1.running == true
- graphs(car1.lap_times, 13, car1.seg_times, 1);
+ graphs(car1.lap_times, ref_time, car1.seg_times, 1);
end
if car2.running == true
- graphs(car2.lap_times, 13, car2.seg_times, 2);
+ graphs(car2.lap_times, ref_time, car2.seg_times, 2);
end