diff options
| author | alex <aletu130@student.liu.se> | 2019-11-26 07:40:36 +0100 |
|---|---|---|
| committer | alex <aletu130@student.liu.se> | 2019-11-26 07:40:36 +0100 |
| commit | cf90eccbbbc8b016626a746df45ec84dd07b477a (patch) | |
| tree | ce60e3d44fa1eb775d7c963c741ae8a7da1d8d23 /Kod/bilbana/yc4/do_boot.m | |
| parent | 51a803f74b5e3ddbbb8cd73bce72448dd82a2ff7 (diff) | |
| download | tfyy51-cf90eccbbbc8b016626a746df45ec84dd07b477a.tar.gz | |
Ändrade lite i spänningskartan för att det skulle fungera, samt ändra på värdena
Diffstat (limited to 'Kod/bilbana/yc4/do_boot.m')
| -rw-r--r-- | Kod/bilbana/yc4/do_boot.m | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Kod/bilbana/yc4/do_boot.m b/Kod/bilbana/yc4/do_boot.m index d7e9b88..44ae1e7 100644 --- a/Kod/bilbana/yc4/do_boot.m +++ b/Kod/bilbana/yc4/do_boot.m @@ -15,7 +15,7 @@ if car.running == true end %% WHEN NEW LAP if car.new_lap == 1 - car.constant = car.constant + 0.3; + car.constant = car.constant + 0.4; disp('###') disp(car.num) disp(car.constant) @@ -24,13 +24,26 @@ if car.running == true if car.lap == 1 && car.segment == 1 || car.lap == 1 && car.segment == 2 t = toc(boot.time); if t > 0.8 - car.constant = car.constant + 0.05; + car.constant = car.constant + 0.06; disp('###') disp(car.num) disp(car.constant) boot.time = tic; end + end + %% ide höj carconstant så att den blir mer aggresivare ju längre tid som det går t.ex efter 3.5 s + %% if car.lap == 1 && car.segment == 1 || car.lap == 1 && car.segment == 2 + %% t = toc(boot.time); + %% if t > 1.0 + %% car.constant = car.constant + 0.5; + %% disp('###') + %% disp(car.num) + %% disp(car.constant) + %% boot.time = tic; + %% end + %% + %% end |
