View Single Post
  #8   Spotlight this post!  
Unread 23-06-2011, 10:37
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,712
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.