Go to Post Our team has a forum..... chiefdelphi.com Ok I had to say it. - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2013, 12:13
DeadlyJohny DeadlyJohny is offline
Registered User
FRC #3417
 
Join Date: Feb 2012
Location: Dallas, TX
Posts: 26
DeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to behold
Basic Programmer. What am I doing wrong?

Hey guys! Thanks! I'm using a friend accounts but i'm not sure what I am doing wrong. I have programmed all the buttons and the throttle to control their motors and it all seems right. But when we ran the code last Monday, only drive motors turned. All the other motors ran on baije jaguars. Could that be it? I know the PWM's are right and the jaguars do have power and flash yellow. What is wrong?

Thanks in advanced!

http://i.imgur.com/36mr4Gw.png?1
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2013, 12:23
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: Basic Programmer. What am I doing wrong?

Your code seems fine.

Yellow flashing on the Jaguars while the robot is enabled means they aren't receiving a PWM signal.
Even if your code logic wasn't correct, the Open statements for PWMs 7-10 would give you solid yellow Jaguar lights (while Enabled) if the control wiring was correct.
The problem can be split into code vs hardware by using the Test mode on the Driver Station and the Test tab on the Dashboard. The default Dashboard gives us control over each individual motor, while bypassing all our custom code except for the Device Opens.

Some suspects are:
  • PWM cable connection on the Jaguar - pins not inserted at the right angle or cable orientation (black wire to the inside)
  • PWM cable connection on the Sidecar (black wire to outside)
  • 12v power to the Digital Sidecar (3 bright green power lights on Sidecar)
  • The 37-pin ribbon cable to the Sidecar - check that it's securely plugged in at both ends and test eact pin for continuity (can swap in commercial cable if you have one)
  • The Digital Module connection to the cRIO Chassis (pull the module and inspect for bent/broken pins, metal debris)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2013 at 12:29.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-02-2013, 13:57
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Basic Programmer. What am I doing wrong?

Don't forget the PWM cable itself! We've had issues this year with faulty PWM cables, particularly splitter's.
Reply With Quote
  #4   Spotlight this post!  
Unread 25-02-2013, 17:12
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Basic Programmer. What am I doing wrong?

Quote:
Originally Posted by propionate View Post
Don't forget the PWM cable itself! We've had issues this year with faulty PWM cables, particularly splitter's.
This year we've had like 17 thousand problems with PWM
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
Reply


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 22:53.

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