Galaxia5987 / robot-2022

Other
2 stars 1 forks source link

Hotfix/value tuner #57

Closed barel13 closed 2 years ago

barel13 commented 2 years ago

The problem is that we initialize the networktable before the robot is initialized (we load it when the code starts running). We need to wait until the robot loads so we can use the networktables.

The fix waits until the robot loads and then loads it before we have the robot container. The purpose of the boolean initializedConstants is that after the robot initialized, then we can immediately load the constant. (the use case is for commands, that are loaded when we load the RobotContainer class)