View Single Post
  #24   Spotlight this post!  
Unread 19-03-2013, 16:43
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,113
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: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
THIS is my begin
Quote:
Originally Posted by tim101 View Post
i did not program the begin
Someone on your team did, and they did it wrong. The Compressor Enabled status check, and the while loop that contains it, should not be there. Instead, there should be a Compressor RefNum Set giving the compressor reference a name, and that same name should be used in the Compressor RefNum Get that feeds the compressor control loop function in Periodic Tasks.

Start with the example project I told you about. Get it working first. Then use the tutorial I told you about to move the example code into your robot program.
Reply With Quote