View Single Post
  #1   Spotlight this post!  
Unread 25-02-2004, 16:16
Jared Stofflett Jared Stofflett is offline
Registered User
#0123
 
Join Date: Nov 2003
Location: Hamtramck
Posts: 10
Jared Stofflett is an unknown quantity at this point
Send a message via AIM to Jared Stofflett
Default mapping relay questions

I'm still not extremely comfortable looking through the code. From what I've found relay1 and relay2 are mapped for joystick drive to limit movement. Is this true in both single and double joystick mode? If it is it explains why my code isn't working and we need to rewire the spikes for the pneumatics. Appreciate any info, the section of code I found that made me think this is below.
* This default code maps the joystick buttons to specific relay outputs.
* Relays 1 and 2 use limit switches to stop the movement in one direction.
* The & used below is the C symbol for AND
*/
relay1_fwd = p1_sw_trig & rc_dig_in01; /* FWD only if switch1 is not closed. */
relay1_rev = p1_sw_top & rc_dig_in02; /* REV only if switch2 is not closed. */