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)
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)