|
Re: Default mapping relay questions
Quote:
|
Originally Posted by Jared Stofflett
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. */
|
relay1_fwd/rev refer to relay positions, not going forward or reverse on drive one. These relays in general control spikes which in turn usually control solenoids. This is so you can send the solenoid in both directions to send the piston both ways. I, myself, just deleted the code limiting relay inputs. Anyways, to get back on topic, this should not be limiting your joysticks and drives, or anything on victors. Could you post your code so someone could look over it?
-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;
Horray for most things! -George Carlin
"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
|