Weird PWM behaviour?

We’ve just assembled our electrical board and we’re having some really really strange issues with the Jaguar.

The Jaguar (currently we only have 1 attached) is connected to the digital sidecar on PWM1. By initializing a new Jaguar via Jaguar j = new Jaguar(1); I can’t control the Jaguar and it blinks yellow after enabling the robot.

However, if I initialized the Jaguar using new Jaguar(4). It works flawlessly (except for the whole wrong channel number thing)…

Any idea why this is?

Which language is this and us the pwm plugged in in the right orientation

Java, and Yes.

There was another thread that discussed this same problem. I would search for that as I remember it was answered.

FIRST released an update a while ago that addressed the issue. Apparently, most of the KOP cables that connect the cRIO to the digital sidecar this year aren’t properly wired. Here’s a link to the update and to the fix:

http://frc-manual.usfirst.org/TeamUpdates/0#term%2074

Good luck and I hope this helps!

We have been having the same issue the last few days. Using a multimeter, we did not see voltage on the PWM pins.

I did some additional research last night and found that the slot arrangements on the CRIO have changed, and may have to be accounted for when constructing the jaguar.

If I remember correctly, the digital sidecar needs to go in either slots 2 or 6 this year, if it is in slot 2 your code is fine, but if it’s in slot 6 you must modify to:
Jaguar j = new Jaguar(2,1); //the channel must be 2 for a digital car in slot 6.

(note: I’m programming in C++ and this is valid, but you may want to make sure the channel is the first param for Java)

I haven’t had a chance to test if this resolves our issue, but I’ve got a good feeling :] hope this can help.