FRCteam3952 / FRC2023

2022 - 2023 Season Robot Code
Other
11 stars 17 forks source link

Refactored drive train subsystem #18

Closed siIverfish closed 1 year ago

siIverfish commented 1 year ago

I made some nice lists and compacted the code. I didn't do anything to the bit that drives, though.

May need some testing but I'm pretty sure this will work on the first try. Please merge this quick so I don't have to manually merge stuff back in.

maxchen132 commented 1 year ago

Thanks for the effort but I think while your code does help reduce some of the lines it doesn't help particularly with readability and ease of understanding. With everything declared by iterating through an array, it gets harder to keep track of all the variables.