LakeEffectRobotics / LER_2019

2019 Destination Deep Space
Apache License 2.0
0 stars 0 forks source link

Get LEDs working on test robot. We can use LEDs to let us know when the robot is properly aligned to the field lines #14

Closed gbuckholtz closed 5 years ago

gbuckholtz commented 5 years ago

There is code in the 2017 codebase that operates the LEDs. That could be a place to start.

I suppose the very first step is to find some LEDs!

ajayyy commented 5 years ago

If we are doing lights, I think it's a good idea to have it also have an indicator in smart dashboard, as that will be important for sandstorm as well

ajayyy commented 5 years ago

Reference:

https://github.com/LakeEffectRobotics/LER_2017/blob/master/LER_Robot/src/org/usfirst/frc/team2816/robot/commands/GlowCommand.java

https://github.com/LakeEffectRobotics/LER_2017/blob/master/LER_Robot/src/org/usfirst/frc/team2816/robot/commands/ChangeGlowMode.java

https://github.com/LakeEffectRobotics/LER_2017/blob/master/LER_Robot/src/org/usfirst/frc/team2816/robot/commands/ChangeGlowColour.java

https://github.com/LakeEffectRobotics/LER_2017/blob/master/LER_Robot/src/org/usfirst/frc/team2816/robot/subsystems/Glow.java

gbuckholtz commented 5 years ago

exactly! @ajayyy you could code on the assumption that we are going to find those LEDs again.

ajayyy commented 5 years ago

We have to look into if we are using the same relays as before as they are discontinued now.

Relay reference: https://wpilib.screenstepslive.com/s/currentCS/m/java/l/599706-on-off-control-of-motors-and-other-mechanisms-relays

gbuckholtz commented 5 years ago

Do the old relays work?

On Mon, 4 Feb 2019, 20:58 Ajay Ramachandran <notifications@github.com wrote:

We have to look into if we are using the same relays as before as they are discontinued now.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/LakeEffectRobotics/LER_2019/issues/14#issuecomment-460485903, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKRlJzgx0R4EiztuRfjaS7i4xq-J0cfks5vKOVEgaJpZM4aPrrJ .

gbuckholtz commented 5 years ago

You could get a copy of Sensor_V2 and use the relays that are already on board. Once you get it working you could then move those relays to the working bot. @ajayyy , Are there enough relays on the test bot to spread over two new bots?

ajayyy commented 5 years ago

I don't think there are enough unless we want to steal from from the steamworks bot as well. But that bot is at the new place.

gbuckholtz commented 5 years ago

I think that we should ask Mr. Wood about options then. I will be there on Wednesday and we can see what can be done.

On Feb 5, 2019, at 4:57 PM, Ajay Ramachandran notifications@github.com wrote:

I don't think there are enough unless we want to steal from from the steamworks bot as well. But that bot is at the new place.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/LakeEffectRobotics/LER_2019/issues/14#issuecomment-460819830, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKRlBdkuArz1-pqtCsCGQHWx0fI8DTOks5vKf4_gaJpZM4aPrrJ.

gbuckholtz commented 5 years ago

@ajayyy , I wrote Mr. Wood and he says he should have some relays that will work. If not he can order something suitable from Digikey

ajayyy commented 5 years ago

Okay, I'll be at the meeting Friday. I'll look into putting the LED code into Shawn's test code.

ajayyy commented 5 years ago

https://github.com/LakeEffectRobotics/LER_2019/tree/ajayyy-led

Confirmed to work on sensor test bot. We can try it out with the new relays now.