View Single Post
  #5   Spotlight this post!  
Unread 24-01-2010, 18:31
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Auto off air compressior code

In C++ and Java, after you create a compressor object and call its start method it will automatically turn the compressor on and off as needed.

You need to make sure you have the pressure switch wired up to a digital input correctly and that you specify the correct spike relay and digital input for the pressure switch when you create the object.