superhornets / 2023-Robot

Other
0 stars 0 forks source link

Move code from Robot.java to Submodule classes #2

Open JonathanLindsey opened 1 year ago

JonathanLindsey commented 1 year ago

This is in part preparation for a move to command based.

For now Joystick code should stay in Robot.java and not get moved to the submodule.

If you want to move the submodule classes to their own folder, that should just be a separate commit in order to keep the commit diffs nice.

JonathanLindsey commented 1 year ago

Here's an incomplete list of some more ways to continue moving things into submodule classes. It's possible something I say doesn't work out. Please keep me posted.

LED class structure

Here's what I'm thinking, let me know if this doesn't make since.

  1. Have the Pit Safety state handled in the Tower class.
  2. Have a separate Leds class.
  3. The Tower class creates an instance of Tower and calls a method of Tower when the lights should change color.
JonathanLindsey commented 1 year ago

Please use the checkboxes above as you commit and push.

JonathanLindsey commented 1 year ago
JonathanLindsey commented 1 year ago