Shenzhen-Robotics-Alliance / maple-sim

Elevating FRC Java Robot Simulations to the Next Level with Physics Engines
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

Improved readability of DRIVE_WHEEL_TYPE enum #14

Closed KfirNeuman closed 3 weeks ago

KfirNeuman commented 3 weeks ago

Improved readability of DRIVE_WHEEL_TYPE enum

I changed the DRIVE_WHEEL_TYPE enum so that it uses a field for the wheel grip instead of a switch case. This should make it easier to read as all of the information is contained within the enum, and should it easier and safer to add more wheel types.

catr1xLiu commented 3 weeks ago

Beautiful work, and thanks a lot for contributing!