Open irwineffect opened 7 years ago
Note the above API is still under construction, people are welcome to comment and refine the API.
What about having these be services? Do we want to implement the system where each subsystem has a section of the led's that display its status while running? Perhaps allow preset patterns similar to the old system?
I suggest a parameter for the refresh FPS for the LEDs.
How are the LEDs going to be arranged on the sub and should that information be used within the arduino node?
These are all fantastic questions. I was just thinking of this issue as getting the basic functionality working at first, to get someone new familiar with how to work the LEDs. Yeah picking a pattern or color might be worth it as a service call, but I think the raw control should be a topic for speed. Let's just keep them all as topics for right now.
Update. The LEDs are currently only monochrome, and you can only set them percentage on and off.
Introduction
This is going to be an arduino-based node that controls our LEDs. It should allow for both precise control over the pixels and switching all leds to a particular color.
Topic Names
led/raw
- raw control over the pixels robosub/rgbArrayled/solid
- sets all pixels in the array to the color specified robosub/rgbParameters
led/count
- the number of pixels in the array