summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/setup_car.m
blob: 1ab75e0fbf9f1d83e030d7e8579fd98700f5c85c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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