Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Weird PWM behaviour? (http://www.chiefdelphi.com/forums/showthread.php?t=100593)

shuhao 18-01-2012 20:00

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?

inkspell4 18-01-2012 20:57

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

shuhao 18-01-2012 21:06

Re: Weird PWM behaviour?
 
Quote:

Originally Posted by inkspell4 (Post 1108688)
Which language is this and us the pwm plugged in in the right orientation

Java, and Yes.

Al Skierkiewicz 18-01-2012 21:29

Re: Weird PWM behaviour?
 
There was another thread that discussed this same problem. I would search for that as I remember it was answered.

TofuRama 18-01-2012 22:00

Re: Weird PWM behaviour?
 
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!

DjScribbles 19-01-2012 11:29

Re: Weird PWM behaviour?
 
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.


All times are GMT -5. The time now is 09:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi