summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/setup_car.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4/setup_car.m')
-rw-r--r--Kod/bilbana/yc4/setup_car.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/setup_car.m b/Kod/bilbana/yc4/setup_car.m
new file mode 100644
index 0000000..1ab75e0
--- /dev/null
+++ b/Kod/bilbana/yc4/setup_car.m
@@ -0,0 +1,17 @@
+function [] = setup_car(car, track)
+%UNTITLED2 Summary of this function goes here
+% Detailed explanation goes here
+disp('J = Ja (automatiskt), M = Ja (manuellt), N = Nej');
+
+car.response = input('Vill du köra bil 1? [N] ', 's');
+if car.response == 'J'
+ car.running = true;
+ car.automatic = true;
+elseif car.response == 'M'
+ car.running = true;
+ car.automatic = false;
+else
+ car.running = false;
+end
+end
+