diff options
| author | Albin <albwa833@student.liu.se> | 2019-11-14 09:35:15 +0100 |
|---|---|---|
| committer | Albin <albwa833@student.liu.se> | 2019-11-14 09:35:15 +0100 |
| commit | 74f1d443644c8654d9fbc3bf48f5d3b87e48c199 (patch) | |
| tree | 3d5c5835fc84121e20b8db707a84ad9cc3091a11 /Kod/bilbana/yc4 | |
| parent | 39117fca7d32e4930867f4caf3100bf9df64ac33 (diff) | |
| download | tfyy51-74f1d443644c8654d9fbc3bf48f5d3b87e48c199.tar.gz | |
Välj ref-time
Diffstat (limited to 'Kod/bilbana/yc4')
| -rw-r--r-- | Kod/bilbana/yc4/main.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/main.m b/Kod/bilbana/yc4/main.m index 3c1b445..56b0014 100644 --- a/Kod/bilbana/yc4/main.m +++ b/Kod/bilbana/yc4/main.m @@ -81,7 +81,15 @@ elseif car2.response == 'M' else car2.running = false; end - +%{ +ref_time = input('Vilken referenstid ska användas? [13] ', 's'); +ref_time = str2double(ref_time); +if isnan(ref_time) + ref_time = 13; +elseif not(isreal(ref_time)) + ref_time = 13; +end +%} ref_time = 13; %% MAIN LOOP while 1 |
