diff options
| author | matuv053 <matuv053@student.liu.se> | 2019-11-25 16:30:42 +0100 |
|---|---|---|
| committer | matuv053 <matuv053@student.liu.se> | 2019-11-25 16:30:42 +0100 |
| commit | 51a803f74b5e3ddbbb8cd73bce72448dd82a2ff7 (patch) | |
| tree | 0fdd12b59ff4fe83b1f57081b50af90aac001d5d /Kod/bilbana/yc4/do_boot.m | |
| parent | ce327fb49a6f30cfbf806eef46a04f4d98ded949 (diff) | |
| download | tfyy51-51a803f74b5e3ddbbb8cd73bce72448dd82a2ff7.tar.gz | |
Ändrat lite värden.
Diffstat (limited to 'Kod/bilbana/yc4/do_boot.m')
| -rw-r--r-- | Kod/bilbana/yc4/do_boot.m | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Kod/bilbana/yc4/do_boot.m b/Kod/bilbana/yc4/do_boot.m index 1638fb2..d7e9b88 100644 --- a/Kod/bilbana/yc4/do_boot.m +++ b/Kod/bilbana/yc4/do_boot.m @@ -6,7 +6,7 @@ if car.running == true if car.lap == 0 t = toc(boot.time); if t > 0.6 - car.constant = car.constant + 0.05; + car.constant = car.constant + 0.12; disp('###') disp(car.num) disp(car.constant) @@ -21,16 +21,19 @@ if car.running == true disp(car.constant) end %% First segment - if car.lap == 1 && car.segment == 1 + if car.lap == 1 && car.segment == 1 || car.lap == 1 && car.segment == 2 t = toc(boot.time); - if t > 3 - car.constant = car.constant + 0.2; + if t > 0.8 + car.constant = car.constant + 0.05; disp('###') disp(car.num) disp(car.constant) boot.time = tic; end end + + + %% END BOOTSTRAP if car.segment > 2 boot.status = 0; |
