View Single Post
  #1   Spotlight this post!  
Unread 25-01-2008, 13:41
kE7JLM's Avatar
kE7JLM kE7JLM is offline
KE7JLM `
AKA: John Harris
FRC #0842 (Falcon Robotics)
Team Role: Driver
 
Join Date: May 2007
Rookie Year: 2006
Location: Phoenix, AZ`
Posts: 136
kE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to allkE7JLM is a name known to all
Send a message via MSN to kE7JLM
Pressure Switch code

I am having a problem with our compressor, spikes, and RC. I need to get the pressure switch to tell the spike that is connected to the compressor to turn on unto it read 120psi. Yet I don't even have a spike switching to fwd or rev?

I have this code in right now

if(digital_io_18 == 0)
{
relay1_fwd == 1;
}

if(digital_io_18 ==1)
{
relay1_fwd == 0;
}


Can some let me know what I am doing wrong?

Thank you
__________________
Team 842 Programmer

Pictures at:
http://picasaweb.google.com/KE7JLM
&
http://picasaweb.google.com/john.h.842

Videos -
http://www.youtube.com/user/KE7JLM

When your not busy with FIRST try NURC