diff options
| author | Albin <albwa833@student.liu.se> | 2019-11-25 12:37:10 +0100 |
|---|---|---|
| committer | Albin <albwa833@student.liu.se> | 2019-11-25 12:37:10 +0100 |
| commit | e71ea6726340c44fbfc4f00fcfec75ac441b8a5d (patch) | |
| tree | 6eb28b709e0bd8902fa03d98e8ab641a72e65f5e /Kod/bilbana | |
| parent | 9ed366cbce18b58df5f880e92e008c3906c93378 (diff) | |
| download | tfyy51-e71ea6726340c44fbfc4f00fcfec75ac441b8a5d.tar.gz | |
Lite justerad
Diffstat (limited to 'Kod/bilbana')
| -rw-r--r-- | Kod/bilbana/yc4/do_boot.m | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/do_boot.m b/Kod/bilbana/yc4/do_boot.m index 31f4db0..1638fb2 100644 --- a/Kod/bilbana/yc4/do_boot.m +++ b/Kod/bilbana/yc4/do_boot.m @@ -7,15 +7,26 @@ if car.running == true t = toc(boot.time); if t > 0.6 car.constant = car.constant + 0.05; + disp('###') + disp(car.num) disp(car.constant) boot.time = tic; end end + %% WHEN NEW LAP + if car.new_lap == 1 + car.constant = car.constant + 0.3; + disp('###') + disp(car.num) + disp(car.constant) + end %% First segment if car.lap == 1 && car.segment == 1 t = toc(boot.time); if t > 3 - car.constant = car.constant + 0.05; + car.constant = car.constant + 0.2; + disp('###') + disp(car.num) disp(car.constant) boot.time = tic; end @@ -24,6 +35,8 @@ if car.running == true if car.segment > 2 boot.status = 0; disp('END OF BOOTSTRAP') + disp(car.num) + disp(car.constant) end end end
\ No newline at end of file |
