summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/do_car.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4/do_car.m')
-rw-r--r--Kod/bilbana/yc4/do_car.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/do_car.m b/Kod/bilbana/yc4/do_car.m
index 5063e1d..ed8de89 100644
--- a/Kod/bilbana/yc4/do_car.m
+++ b/Kod/bilbana/yc4/do_car.m
@@ -72,7 +72,9 @@ if car.running == true
if car.stopping == true
% CHECK IF CAR IS AT THE END OF TRACK
- if car.position > 19 % TODO idk
+ if car.position > (car.map(80, 1) / 100) - 0.8 % 80cm
+ disp(car.position)
+ disp((car.map(80, 1) / 100) - 300)
set_car_speed(car.num, 0);
car.stopped = true;
return