FRC2706 / 2017-2706-Robot-Code

The main robot code for our 2017 Steamworks robot.
3 stars 3 forks source link

Add robot-side Bling subsystem #16

Closed kevlam2706 closed 7 years ago

kevlam2706 commented 7 years ago

Add a Subsystem class to support the Bling. It will need to maintain a link to the Arduino via RS232 to tell it what to signal.

There is existing code that we wrote from 2994 that we can port over into the command-based robot code.

https://github.com/FRC2994/FRC-2015/blob/master/src/ca/team2994/frc/robot/Bling.java

kevlam2706 commented 7 years ago

Here's the link to wpilib's tutorial on command-based programming:

https://wpilib.screenstepslive.com/s/4485/m/13809/l/599732-what-is-command-based-programming

We want to build a Subsystem that can later be controlled by Commands.

kevlam2706 commented 7 years ago

We will need to get a serial cable to connect the RoboRio to one of the Arduino boards (to be later replaced by a Roboduino). Hopefully @LlamaBot9000 (miniKev) can help us with this.

kajames commented 7 years ago

Kevin:

Found some bling interface code from 2994 - https://github.com/FRC2994/FRC-2015/blob/927aa2e77c47a2a32f1878d380ce181c6c7583dd/src/ca/team2994/frc/robot/Bling.java

Ken.

On Fri, Feb 3, 2017 at 4:06 PM, Kevin Lam notifications@github.com wrote:

Here's the link to wpilib's tutorial on command-based programming:

https://wpilib.screenstepslive.com/s/4485/m/13809/l/599732-what-is- command-based-programming

We want to build a Subsystem that can later be controlled by Commands.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FRC2706/2017-2706-Robot-Code/issues/16#issuecomment-277362374, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWvxH6RqwqmjNwP5d7CTcu_uMVdLduNks5rY5blgaJpZM4L2zUM .

KyleRAnderson commented 7 years ago

@greyingjay in the example code you give me, they are referring to a boolean variable called "blingport". What are we going to use for this? I think that this variable refers to the port between the arduino and the roborio, so are we also going to have something similar? Subsystem.blingPort.writeString("X");, if (Subsystem.blingPort != null)

Ketchperiment commented 7 years ago

Is it just a USB B cable that we need or is there something special to interface with the roborio (that goes in the same port as the navx)

Ketchperiment commented 7 years ago

@eAUE try this link, it is a tutorial for the I2C connection code

KyleRAnderson commented 7 years ago

This is well under way. Should be committing a good version soon.

KyleRAnderson commented 7 years ago

Completed in #32