DevilBotz2876 / ChargedUp2023

Code for the FRC 2023 Robotics Competition
Other
3 stars 0 forks source link

Initialize practice bot differently than comp bot #73

Closed loafdog closed 1 year ago

loafdog commented 1 year ago

Practice bot does not have anything but a drive train. Don't initialize any other subsystems on practice bot.
Check if practice bot or not before calling subsystem methods.

Move all robot config out of Robot class into new class. Add method to check if comp bot or not.

BrownGenius commented 1 year ago

@loafdog, the only change we should make is to ensure the main code will always run as-is on the competition, bot...so I'd just remove the change to .wpilib/wpilib_preferences.json

BrownGenius commented 1 year ago

I had to revert the commit because it didn't behave properly on the practice bot at runtime.