diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-15 11:50:49 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-15 11:50:49 +0100 |
| commit | d86e80be733c5081d72bbecd76aeb2b796d2e74b (patch) | |
| tree | f8270120eca92ebfe939335e30f6eaf296076638 /Kod/bilbana | |
| parent | 04fe16356917c94fc0dafea83b50e380bb3bdaf8 (diff) | |
| download | tfyy51-d86e80be733c5081d72bbecd76aeb2b796d2e74b.tar.gz | |
Draw bar instead of printing num
Diffstat (limited to 'Kod/bilbana')
| -rw-r--r-- | Kod/bilbana/yc4/main.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Kod/bilbana/yc4/main.m b/Kod/bilbana/yc4/main.m index 8ee18b2..cad395a 100644 --- a/Kod/bilbana/yc4/main.m +++ b/Kod/bilbana/yc4/main.m @@ -96,6 +96,9 @@ elseif not(isreal(ref_time)) end %} ref_time = 13; + +matlabclient(1, get_smallpackage([define_bar_graph('O', 2, 266, 30, 290, 210, 0, 64, 1, 1)])); + %% MAIN LOOP while 1 readTime = tic; @@ -127,10 +130,11 @@ while 1 if toc(display.last_send) > display.send_interval % queue control signal if car1.running && car1.automatic - display.data = [display.data, put_text(20, 16 + (16 * 1), 'L', num2str(car1.u))]; + % display.data = [display.data, put_text(20, 16 + (16 * 1), 'L', num2str(car1.u))]; end if car2.running && car2.automatic - display.data = [display.data, put_text(20, 16 + (16 * 2), 'L', num2str(car2.u))]; + % display.data = [display.data, put_text(20, 16 + (16 * 2), 'L', num2str(car2.u))]; + display.data = [display.data, update_bar_graph(2, car2.u)]; end % send all queued data |
