PalouseRobosub / robosub

Code for the computer on the sub
GNU General Public License v3.0
13 stars 0 forks source link

LED Arduino Code #237

Open irwineffect opened 7 years ago

irwineffect commented 7 years ago

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/rgbArray led/solid - sets all pixels in the array to the color specified robosub/rgb

Parameters

led/count - the number of pixels in the array

irwineffect commented 7 years ago

Note the above API is still under construction, people are welcome to comment and refine the API.

skallaher commented 7 years ago

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?

irwineffect commented 7 years ago

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.

ryan-summers commented 7 years ago

Update. The LEDs are currently only monochrome, and you can only set them percentage on and off.