From 484d7bfd8c9d20ef2ff1555ffcc905e747d111ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Thor=C3=A9n?= Date: Wed, 27 Nov 2019 13:03:58 +0100 Subject: fix --- Kod/bilbana/yc4/setup_car.m | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Kod/bilbana/yc4/setup_car.m (limited to 'Kod/bilbana/yc4/setup_car.m') 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 + -- cgit v1.2.1