Team4050 / 2023-charged-up

Robot code for the 2023 FRC game: Charged Up
Other
0 stars 0 forks source link

Determine command pattern #8

Open CS-5 opened 1 year ago

CS-5 commented 1 year ago

Need to figure out what makes sense for a general pattern to follow when creating commands:

Kieth-the-25th commented 1 year ago

Another thing which relates to this is abstracting the controls a bit so we could change them easily, and figuring out when to use the Trigger class or have conditional stuff.

CS-5 commented 1 year ago

Agreed, great point! I would lean towards having all controller button/axis mappings in RobotContainer, but there are other ways to accomplish the same thing too.

Kieth-the-25th commented 1 year ago

@CS-5 So I've spent some time thinking, and I think this is reasonable:

CS-5 commented 1 year ago

Great ideas, I agree on all points :+1:

On your last point, I think there may be cases in very complex robots where splitting code into multiple separate commands might make sense, but I don't believe we're there yet.


We will want to see how autonomous changes things (if at all), but I say lets move forward with the above. Nice work!

Kieth-the-25th commented 1 year ago

Autonomous will definitely change things, since in autonomous we'll likely have to use multiple subsystems in sync, and a single command is the easiest way of doing that.