View Single Post
  #3   Spotlight this post!  
Unread 01-02-2007, 09:35
SoD SoD is offline
Registered User
FRC #2230
 
Join Date: Jan 2007
Location: Israel
Posts: 15
SoD is an unknown quantity at this point
Re: Microswitch problem

Quote:
Originally Posted by Andrew Morris View Post
A few questions:
1. Do you have the digitalIO port you are using configured as an input?
2. What alias are you using to read the port(like rc_dig_in01)?

Basedd on your answers I should be able to tell you what is wrong.

Andrew
1. Yes
2. Yes, we are using rc_dig_in01. This is the code we tried.

if (rc_dig_in01 == 1)
{
relay1_fwd = 0;
relay1_rev = 0;
}