frc538 / 2020-infinite-recharge

Robot code for FRC Team 538.
0 stars 0 forks source link

Let the ColorWheel Subsystem read color data from the FMS. #10

Closed drewwhis closed 4 years ago

drewwhis commented 4 years ago

Full details here: https://docs.wpilib.org/en/latest/docs/software/wpilib-overview/2020-Game-Data.html

This line will get the game message. String gameData = DriverStation.getInstance().getGameSpecificMessage();

The message should be at least one letter long and will be one of: "B", "G", "R", or "Y".

The letters correspond to blue, green, red, and yellow, respectively.

This tells us the color the sensor should read when stage 2 is finished.

drewwhis commented 4 years ago

This can be played with at any point, really, but shouldn't be finalized until #13 and its follow-on tasks are finished.