diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-14 09:59:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-11-14 10:05:49 +0100 |
| commit | 14b2064d325f8065dad48421c16db9b4ac678cfe (patch) | |
| tree | a336ca6548355d9cd4bc3448fae2eeccb25057be /Kod/bilbana/yc4/display/send_data_to_display.m | |
| parent | 74f1d443644c8654d9fbc3bf48f5d3b87e48c199 (diff) | |
| parent | 50ed829577446a0ae66395a1c20f47e79282d4cd (diff) | |
| download | tfyy51-14b2064d325f8065dad48421c16db9b4ac678cfe.tar.gz | |
Merge branch 'display-io' into car-function
Diffstat (limited to 'Kod/bilbana/yc4/display/send_data_to_display.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/send_data_to_display.m | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Kod/bilbana/yc4/display/send_data_to_display.m b/Kod/bilbana/yc4/display/send_data_to_display.m deleted file mode 100644 index c5d70c7..0000000 --- a/Kod/bilbana/yc4/display/send_data_to_display.m +++ /dev/null @@ -1,27 +0,0 @@ -function [] = send_data_to_display() -%SEND_DATA_TO_DISPLAY sends available data to display if last send was -% more than 0.5 seconds ago. - persistent last_send; - global display_data; - - if isempty(display_data) - return - end - % disp(last_send); - % disp(clock); - if isempty(last_send) % first send - %% SEND DATA - % disp('sending data'); - % disp(display_data) - matlabclient(1, display_data{1}); - last_send = clock; - display_data(1) = []; - elseif (etime(clock, last_send) >= 0.5) - %% SEND DATA - % disp('sending data'); - % disp(display_data) - matlabclient(1, display_data{1}); - last_send = clock; - display_data(1) = []; - end -end |
