Skip to content

Commit 055ffdd

Browse files
Led controller fixes (#68)
* remove extraneous directory * cannot log a string message, rcl gets very angry with you
1 parent ed54295 commit 055ffdd

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/rov/rov_led_controller/rov_led_controller/led_controller.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ def ui_request_callback(self, msg):
9191
# Change animation and colors
9292
if msgs[0] == 'get_animations':
9393
# Send the list of preprogrammed animations to the UI
94-
animations_msg = String()
95-
animations_msg.data = "\n".join(animation for animation in self.animations)
96-
self.get_logger().info(animations_msg)
94+
self.get_logger().info(", ".join(animation for animation in self.animations.keys()))
9795
elif msgs[0] == 'get_colors':
98-
colors_msg = String()
99-
colors_msg.data = "\n".join(color for color in self.colors)
100-
self.get_logger().info(colors_msg)
96+
self.get_logger().info(", ".join(color for color in self.colors))
10197
elif len(msgs) >= 2:
10298
# Check for which leds the user wants to modify
10399
setStripFunc = self._set_ring_LED

src/rov/rov_led_controller/src/rov/led_controller/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)