First of all, this could apply to programming, motors, or electrical. I’m a programmer, so i’m going to post this here. If it needs to move somewhere else, someone in authority please do so.
I am programming in this year’s LabVIEW.
Okay. We have been putting together a test robot to propel the basketballs into the hoops. We have 4 Jag’s running (Drive) and 1 Victor running (Shooter).
All of the Jag’s are put into the Digital Sidecar PWM slots 1, 2, 3, and 4.
The Victor is put into PWM slot 5.
When i disable the Victor, and run our Drive code, it runs just fine. No problems, no tinks, nothing. But, when we enable the Victor, and disable the drive code, nothing happens. Absolutely nothing. Could this be something wrong with the sidecar or something wrong with the Victor? All of the code is fine, all of the RefNum’s are exactly the same.
Is your digital sidecar powered by wires coming from the PD board? ie, are the BAT, 5V, and 6V LEDs on? I’ve heard that could make one or two PWMs work but not all of them. That doesn’t theoretically make much sense, since the sidecar circuitry is mostly pass through for PWM, but hey.
A side note: Remember that you must configure your code to use either a Jaguar or a Victor (for each motor instance). Jaguar uses the full range of the Servo PWM signal coming out of the cRIO. If your code is configured for a Victor but you really have a Jaguar hooked up, the Jaguar will not swing to full forward or full reverse.
The problem is resolved.
Most of the problem was wiring, and some was programming.
We had the code using a Victor, which is what we were using. Thanks.
The same symptoms suggest the same fix: make sure you are properly supplying 12 volts to the Digital Sidecar from a 20 amp breaker on the Power Distribution Board.
To add to Alan’s response, check to make sure that the frame of the Axis camera is isolated from the robot’s, as the Axis camera is grounded to its frame.
When you said “step motor” before, did you mean “servo”?
You’re defining the camX and camY servos, but you never command them to move.
The nouveauMotor device reference is not defined in Begin. You should be seeing an error message on the Driver Station telling you about that.
I can’t see YouTube videos from where I am, but I’m going to guess that you haven’t installed the servo power jumpers next to the PWM pins on the Digital Sidecar for the camera servos. If they are indeed being powered, then a “twitch” is usually an indication that they’re not getting a PWM signal, and are just picking up noise on the wires.