summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4')
-rw-r--r--Kod/bilbana/yc4/do_boot.m11
-rw-r--r--Kod/bilbana/yc4/main.m2
2 files changed, 8 insertions, 5 deletions
diff --git a/Kod/bilbana/yc4/do_boot.m b/Kod/bilbana/yc4/do_boot.m
index 1638fb2..d7e9b88 100644
--- a/Kod/bilbana/yc4/do_boot.m
+++ b/Kod/bilbana/yc4/do_boot.m
@@ -6,7 +6,7 @@ if car.running == true
if car.lap == 0
t = toc(boot.time);
if t > 0.6
- car.constant = car.constant + 0.05;
+ car.constant = car.constant + 0.12;
disp('###')
disp(car.num)
disp(car.constant)
@@ -21,16 +21,19 @@ if car.running == true
disp(car.constant)
end
%% First segment
- if car.lap == 1 && car.segment == 1
+ if car.lap == 1 && car.segment == 1 || car.lap == 1 && car.segment == 2
t = toc(boot.time);
- if t > 3
- car.constant = car.constant + 0.2;
+ if t > 0.8
+ car.constant = car.constant + 0.05;
disp('###')
disp(car.num)
disp(car.constant)
boot.time = tic;
end
end
+
+
+
%% END BOOTSTRAP
if car.segment > 2
boot.status = 0;
diff --git a/Kod/bilbana/yc4/main.m b/Kod/bilbana/yc4/main.m
index b7221e3..96e5374 100644
--- a/Kod/bilbana/yc4/main.m
+++ b/Kod/bilbana/yc4/main.m
@@ -223,7 +223,7 @@ disp(car1);
disp(car2);
terminate(1);
-terminate(2)
+terminate(2);
if display_active
matlabclient(3);
end