Go to Post Doctor the drill, or doctor your hand. Easy choice. Let's all make the right one. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2012, 20:00
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
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?
  #2   Spotlight this post!  
Unread 18-01-2012, 20:57
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Which language is this and us the pwm plugged in in the right orientation
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
  #3   Spotlight this post!  
Unread 18-01-2012, 21:06
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Weird PWM behaviour?

Quote:
Originally Posted by inkspell4 View Post
Which language is this and us the pwm plugged in in the right orientation
Java, and Yes.
  #4   Spotlight this post!  
Unread 18-01-2012, 21:29
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Weird PWM behaviour?

There was another thread that discussed this same problem. I would search for that as I remember it was answered.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   Spotlight this post!  
Unread 18-01-2012, 22:00
TofuRama TofuRama is offline
01000110 01010010 01000011
AKA: Matt
FRC #2484 (Team Implosion)
Team Role: Programmer
 
Join Date: Apr 2011
Rookie Year: 2009
Location: Woods Cross Utah
Posts: 17
TofuRama is an unknown quantity at this point
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!
  #6   Spotlight this post!  
Unread 19-01-2012, 11:29
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
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.

Last edited by DjScribbles : 19-01-2012 at 11:30. Reason: added disclaimer for java constructor
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 19:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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