Go to Post .....just don't hurt the programmer =) - mtaman02 [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 23-06-2011, 08:44
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: Jaguar communication issue

Quote:
Originally Posted by jhellr13 View Post
For a drivetrain code, whatever the drive code (arcade, tank. holonomic) is placed in the begin vi. On that block, the pwm cables are assigned for each jaguar controlling the CIM motors. In teleop, that is where you initiate the drive system and make it controllable by a joystick. As a heads up, if you are doing omni wheel or mecanum, remember that those drive systems have 3 axis. Forward, back, and strafe.
If you need some help because it seems like you might be confused, check out this link. It is the team website for Mark McLeod's team up above. They have a great resource for LabVIEW programming on any topic and it was a great help for me this year, and certainly help you out right now.
http://team358.org/files/programming...2009-/LabVIEW/
Frankly, I've never seen anyone place drive code in the Begin.vi - it was my understanding that was for initializing PWM channels, not putting drive code in Robot Main.vi at that point. You may be talking about the Open 4 Motor.vi, which frankly shouldn't be neccessary - I can open individual motors just as easily.

I may seem confused because I believe that I am initializing PWM channels correctly for each individual motor, but nothing seems to be allocated. That website is a great resource, though. I'll be sure to look through that.
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
  #2   Spotlight this post!  
Unread 23-06-2011, 10:37
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,688
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Jaguar communication issue

If you set the motor output in more than one place, especially in someplace like Periodic Tasks, then it could be overriding your Teleop Motor Set and keeping PWM2 in neutral.

I assume the rest of Teleop has a simple straight-through dataflow, without loops or delays.

You might try a step-by-step troubleshooting approach.
  1. Create a new project from scratch
  2. Don't change the existing code, leave the default drive motors, code in Disable, etc.
  3. Add just your new Jaguar out on an unused PWM with a new joystick control.
  4. See if that works.
  5. Step-by-step begin to remove the default code, and changing the code over to resemble what you are having trouble with now.
  6. Test at each change, e.g, 1) just remove the old drive motors, 2) test, 3) relocate your single Jag to PWM2, 4) test, 5) remove the code throwing errors in Disable, 6) test, and so on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-06-2011 at 10:53.
  #3   Spotlight this post!  
Unread 23-06-2011, 11:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Jaguar communication issue

Quote:
Originally Posted by kenavt View Post
Frankly, I've never seen anyone place drive code in the Begin.vi - it was my understanding that was for initializing PWM channels, not putting drive code in Robot Main.vi at that point. You may be talking about the Open 4 Motor.vi, which frankly shouldn't be neccessary - I can open individual motors just as easily.
If you're going to be using the provided tank, arcade, or omni drive functions, you need to define the drivebase motors using an Open 4 Motor (or Open 2 Motor) function. Opening the motors individually is a little more work, and if they are opened individually then controlling them appropriately is even more work.

Quote:
I may seem confused because I believe that I am initializing PWM channels correctly for each individual motor, but nothing seems to be allocated.
You haven't shown us the rest of your code, so we can't do much to help you debug it. You also haven't indicated whether or not you've done any troubleshooting, either by "probing" the value going to the Motor Set or by swapping wires around to see if the problem stays with the Digital Sidecar's PWM output or with the Jaguar.
  #4   Spotlight this post!  
Unread 23-06-2011, 23:10
sithmonkey13's Avatar
sithmonkey13 sithmonkey13 is offline
Registered User
AKA: Nathan
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: St. Louis
Posts: 70
sithmonkey13 is a name known to allsithmonkey13 is a name known to allsithmonkey13 is a name known to allsithmonkey13 is a name known to allsithmonkey13 is a name known to allsithmonkey13 is a name known to all
Re: Jaguar communication issue

Check the connection between the PWM cable and the Jaguar. We have had problems with this before, and as a result, we always hot glue the cables to the Jaguars, as driving in a match could shake the PWM cables loose.
__________________
Note: You cannot tell the difference between "OK Go" and "OK No" when there 2 walls between you and the robot. At that point, the only thing between injury and safety for the mechanical guys is their ninja skills.
  #5   Spotlight this post!  
Unread 23-06-2011, 23:20
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Jaguar communication issue

Quote:
Originally Posted by sithmonkey13 View Post
Check the connection between the PWM cable and the Jaguar. We have had problems with this before, and as a result, we always hot glue the cables to the Jaguars, as driving in a match could shake the PWM cables loose.
We also hot glue the pwm cables. This year we even made a lexan casing that went around the electronic part of our robot. Because it was clear, the refs and everybody could see our electronics, but the tubes couldn't get stuck in the cables. The casing had a hole for the light, and a slit where the power switch was available. We put velcro around it, so it easily came on and off.
  #6   Spotlight this post!  
Unread 30-06-2011, 22:12
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: Jaguar communication issue

I've had a busy last week(two robotics demos, the offseason MARC competition), but I tried the code with a different cRIO, Digital Sidecar, and Jaguars. I had the same result happen where the PWM channel seemed to be allocated incorrectly, so I talked through my drive code with a recently graduated programmer. We isolated the issue to a wrongly attached wire, automatically sending null commands to the Jaguar. So, that was the issue after all.

Thanks a lot for the help anyway. I've learned a bit about debugging, and hopefully I'll be able to bring this knowledge forward into my next project, next build season, and beyond.
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
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 08:12.

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