ftc8580 / powerplay

FTC 2022-2023 8580 Oakview CyberDragons
BSD 3-Clause Clear License
1 stars 0 forks source link

Refactor base #4

Closed wlbrough closed 1 year ago

wlbrough commented 1 year ago

Before issuing a pull request, please see the contributing page.

wlbrough commented 1 year ago

@mikeweiss @RoboticsJRM

This ended up being a much larger refactor than I had originally intended. I migrated all of the existing stuff to Kotlin (except the samples, I left those alone). I'm interested in what you think about Kotlin vs. Java. My intuition is that the kids that were here last year aren't Java experts, and Kotlin may be easier for everyone to pick up anyhow. I'm also more proficient with Kotlin rather than Java, so it would be easier for me to help without going to docs. It's easy enough for me to back-port the changes I made to the Java code, though, if we don't want to go to Kotlin.

The big changes - aside from the language - are splitting out telemetry and hardware controls into separate classes to make the teleop and auton code simpler and clearer.