summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/Graph
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-14 10:47:04 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-14 10:47:04 +0100
commit45cbd70613fe60c1f28ee8f27fd090ee28a9444b (patch)
tree3a3fa130d4ed940f63d04125c5a4f522f023c3bb /Kod/bilbana/Graph
parent04d31ae3e5ffb507422df78ad312ef70d81432f1 (diff)
parent14b2064d325f8065dad48421c16db9b4ac678cfe (diff)
downloadtfyy51-45cbd70613fe60c1f28ee8f27fd090ee28a9444b.tar.gz
Merge branch 'car-function'
Diffstat (limited to 'Kod/bilbana/Graph')
-rw-r--r--Kod/bilbana/Graph/graphs_test.m12
1 files changed, 9 insertions, 3 deletions
diff --git a/Kod/bilbana/Graph/graphs_test.m b/Kod/bilbana/Graph/graphs_test.m
index 955aeee..248e6da 100644
--- a/Kod/bilbana/Graph/graphs_test.m
+++ b/Kod/bilbana/Graph/graphs_test.m
@@ -14,6 +14,12 @@ ref_lap_time = 14;
%% Actual test
graphs(car1.lap_times,ref_lap_time,car1.seg_times,5)
%}
-position = 2.54;
-segment = 2;
-detect_missed(position,segment,1) \ No newline at end of file
+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
+disp(ref_time)
+disp(ref_time*2)