Our team is trying to make a swerve drive test bot but our programming mentor is out right now. When I deploy the code to the roboRio it says “java.lang.NullPointerException: Cannot read field ‘swerveCanCoderConfig’ because ‘frc.robot.Robot.ctreConfigs’ is null.”
In configAngleEncoder() in SwerveModule.java, this line is referring to CTREConfigshere, which is not initialized. That line should at least be public static CTREConfigs ctreConfigs = new CTREConfigs().
@jdao is right, that is the cause of the problem, but I highly recommend you do not put a public static member in the Robot class like that.
The CTREConfig variable should be local to the configAngleEncoder method, it has no business being in Robot or being static.