You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend using predefined constants for any magic numbers anywhere in the code. For example in robotmap.java:
leftDrive = newCANTalon(1);
should read something like:
leftDrive = newCANTalon(kLeftDriveMasterId);
Storing the constants in constants.java is probably OK, but an even better solution is a text file that is read on robot code startup so that changing a constant does not require recompiling and redeploying code. For Ruckus, what you have is fine, but on the competition bot it is pretty much required to handle constants gracefully.
I recommend using predefined constants for any magic numbers anywhere in the code. For example in robotmap.java:
should read something like:
Storing the constants in constants.java is probably OK, but an even better solution is a text file that is read on robot code startup so that changing a constant does not require recompiling and redeploying code. For Ruckus, what you have is fine, but on the competition bot it is pretty much required to handle constants gracefully.
Here is a clunky java implementation I found that does this
The text was updated successfully, but these errors were encountered: