View Single Post
  #6   Spotlight this post!  
Unread 14-02-2013, 13:58
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: Single Motor Teleop/Autonomous being quirky.

I noticed a couple of oddities in your code that probably aren't related to anything you're having problems with, but they still should be addressed.

You have some confusion in the labeling of your drive motors when you open them in Begin. Two of the motors are labeled simply "Left Motor", and the other two are labeled simply "Right Motor". But one of the left ones is connected to the Rear Right Motor input, and one of the right ones is connected to the Front Left Motor input.

In Periodic Tasks, you have moved the Compressor Control Loop code from its default location and put it inside a While loop. The CCL itself is a neverending While loop. If you open it up and look at its front panel, you'll find this comment:
This VI loops and doesn't return.
Placing it into another loop will
prevent that loop from iterating.

Periodic tasks is a good location for it.
Take it back out of the While loop and leave it where it was to begin with, outside any other loops.