View Single Post
  #4   Spotlight this post!  
Unread 06-01-2014, 21:58
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Should this code be working? - Beginner

Quote:
Originally Posted by hasin5 View Post
Do you think if I get this fixed, the code should work?

What if I do:

Compressor compressor1 = new Compressor(1,1); //#
Relay spike = new Relay (1,2); //#
This will keep there from being conflicts. Make sure your electrical team moves the compressor to relay 1 and the spike to relay 2.

You can look at the relay LEDs on the Digital Sidecar to see if the code is working, even if there isn't a relay connected.
Reply With Quote