summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/setup_car.m
diff options
context:
space:
mode:
authorDavid Thorén <davth346@student.liu.se>2019-11-27 13:03:58 +0100
committerDavid Thorén <davth346@student.liu.se>2019-11-27 13:03:58 +0100
commit484d7bfd8c9d20ef2ff1555ffcc905e747d111ea (patch)
tree5874117ff91b2d9a460b327041342a7c6667ab40 /Kod/bilbana/yc4/setup_car.m
parent6d397e0826d9d09cd7a6973513d38cd993bd2779 (diff)
downloadtfyy51-484d7bfd8c9d20ef2ff1555ffcc905e747d111ea.tar.gz
fix
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
+