View Single Post
  #2   Spotlight this post!  
Unread 23-02-2013, 12:23
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,795
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