I successfully programmed my team’s robot last year, but this year we need more motors, and I have come to a road block: I’m not sure how to program a motor connected to CAN. I believe I have imported the correct libraries for it and all, but I am not sure how to define the controller within the code, as I can’t simply define the port on the Roborio like with a PWM connection. We program the robot in Java, and are trying to use VictorSPX. If anyone could give some suggestions on how to accomplish this, that would be greatly appreciated, we leave for competition tomorrow.
*For clarification, I know how to assign controls to the joystick/xbox controller, but I am not sure how to simply define the motor controller within the code.