summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-15 11:42:37 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-15 11:42:37 +0100
commit04fe16356917c94fc0dafea83b50e380bb3bdaf8 (patch)
treecf49bac3d71d4adeee04415e5300c0bd80a78bb9 /Kod/bilbana
parent56924e518a63d94326a2ea20c13daa0ca3a2cd69 (diff)
downloadtfyy51-04fe16356917c94fc0dafea83b50e380bb3bdaf8.tar.gz
remove if-else-bs
Diffstat (limited to 'Kod/bilbana')
-rw-r--r--Kod/bilbana/yc4/display/define_bar_graph.m11
1 files changed, 0 insertions, 11 deletions
diff --git a/Kod/bilbana/yc4/display/define_bar_graph.m b/Kod/bilbana/yc4/display/define_bar_graph.m
index c9a5999..d915cf1 100644
--- a/Kod/bilbana/yc4/display/define_bar_graph.m
+++ b/Kod/bilbana/yc4/display/define_bar_graph.m
@@ -1,16 +1,5 @@
function pkg = define_bar_graph(direction, no, x1, y1, x2, y2, start_value, end_value, type, pattern)
pkg = []
-if direction == 'left'
- direction = 'L'
-elseif direction == 'right'
- direction = 'R'
-elseif direction == 'up'
- direction == 'O'
-elseif direction == 'down'
- direction = 'U'
-else
- return
-
args = [no, get_bytes(x1), get_bytes(y1), get_bytes(x2), get_bytes(y2)]
args = [args, start_value, end_value, type, pattern] %TODO get_bytes or no ?