Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Default mapping relay questions (http://www.chiefdelphi.com/forums/showthread.php?t=26041)

Jared Stofflett 25-02-2004 16:16

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. */

Anthony Kesich 25-02-2004 19:06

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


All times are GMT -5. The time now is 07:49.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi