Go to Post this has Bugs Bunny/Road Runner physics written all over it! - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #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. */
  #2   Spotlight this post!  
Unread 25-02-2004, 19:06
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3 Questions!!! Final Standings! Andy Grady General Forum 1 22-02-2004 22:32
3 Questions!!! (2/20/04) Andy Grady General Forum 20 20-02-2004 17:31
3 Questions!!! (2/5/04) Andy Grady General Forum 11 05-02-2004 21:14
pre-inspection preparation questions Adams High Man OCCRA 7 22-10-2002 22:22
Relay Outputs OddOne Technical Discussion 3 01-02-2002 19:52


All times are GMT -5. The time now is 23:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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