diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-13 01:03:06 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-13 01:03:06 +0100 |
| commit | 2dc7f190f30129a741ecbad2bb8b243c7fa5e4c6 (patch) | |
| tree | bb3d0b01f0313fcddce760f0b3cd9e98de85fc95 /Kod/bilbana | |
| parent | d68ff43bbaaa55aa07a9a9839ef139ebb5cce4fb (diff) | |
| download | tfyy51-2dc7f190f30129a741ecbad2bb8b243c7fa5e4c6.tar.gz | |
Add t as parameter
Diffstat (limited to 'Kod/bilbana')
| -rw-r--r-- | Kod/bilbana/yc4/do_car.m | 2 | ||||
| -rw-r--r-- | Kod/bilbana/yc4/main.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Kod/bilbana/yc4/do_car.m b/Kod/bilbana/yc4/do_car.m index 118aaec..cb9068f 100644 --- a/Kod/bilbana/yc4/do_car.m +++ b/Kod/bilbana/yc4/do_car.m @@ -1,4 +1,4 @@ -function [car, stop] = do_car(car) +function [car, stop] = do_car(car, t) stop = false; diff --git a/Kod/bilbana/yc4/main.m b/Kod/bilbana/yc4/main.m index a0a1f24..cd512eb 100644 --- a/Kod/bilbana/yc4/main.m +++ b/Kod/bilbana/yc4/main.m @@ -95,8 +95,8 @@ while 1 figure(hf) drawnow - [car1, car1.stop] = do_car(car1); - [car2, car2.stop] = do_car(car2); + [car1, car1.stop] = do_car(car1, t); + [car2, car2.stop] = do_car(car2, t); if car1.stop == truej disp('stopped by car 1'); |
