summaryrefslogtreecommitdiffstats
path: root/Kod
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-23 22:02:03 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-23 22:02:03 +0100
commit457b052ca449b0653368c81e4218b20d76cd515a (patch)
tree16e7b91a5e3fc0bf0e672703b0b3be25115c95a5 /Kod
parentfb66785644345d64ac27f53a8ba9b356b363b1cd (diff)
downloadtfyy51-457b052ca449b0653368c81e4218b20d76cd515a.tar.gz
Use calculated values for ref, mean and std
Diffstat (limited to 'Kod')
-rw-r--r--Kod/bilbana/yc4/display/scenes/draw_lap_graph.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Kod/bilbana/yc4/display/scenes/draw_lap_graph.m b/Kod/bilbana/yc4/display/scenes/draw_lap_graph.m
index ec7d6dc..8c7a5d0 100644
--- a/Kod/bilbana/yc4/display/scenes/draw_lap_graph.m
+++ b/Kod/bilbana/yc4/display/scenes/draw_lap_graph.m
@@ -64,12 +64,12 @@ line = 12;
matlabclient(1, get_smallpackage([ ...
put_text(6 , y + 3 + margin_top + line*1, 'L', '1'), ...
put_text(6 , y + 3 + margin_top + line*2, 'L', '2'), ...
- put_text(53 , y + 2 + margin_top + line*1, 'C', 'xx.x'), ...
- put_text(53 , y + 2 + margin_top + line*2, 'C', 'xx.x'), ...
- put_text(160, y + 2 + margin_top + line*1, 'C', 'xx.x'), ...
- put_text(160, y + 2 + margin_top + line*2, 'C', 'xx.x'), ...
- put_text(266, y + 2 + margin_top + line*1, 'C', 'x.xx'), ...
- put_text(266, y + 2 + margin_top + line*2, 'C', 'x.xx'), ...
+ put_text(53 , y + 2 + margin_top + line*1, 'C', num2str(ref_time)), ...
+ put_text(53 , y + 2 + margin_top + line*2, 'C', num2str(ref_time)), ...
+ put_text(160, y + 2 + margin_top + line*1, 'C', num2str(mean(car1_laptimes), 1)), ...
+ put_text(160, y + 2 + margin_top + line*2, 'C', num2str(mean(car2_laptimes), 1), ...
+ put_text(266, y + 2 + margin_top + line*1, 'C', num2str(std(car1_laptimes), 2)), ...
+ put_text(266, y + 2 + margin_top + line*2, 'C', num2str(std(car2_laptimes), 2)), ...
]));
pause(dt);