Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Would the following work!?! (http://www.chiefdelphi.com/forums/showthread.php?t=54437)

Asheron 18-02-2007 11:22

Would the following work!?!
 
or would it burn something out?

Using EasyC

I have the same setup on both sides of the robot; a pump that heads out/in to lower a ramp on either side (so its actually 2 pumps, 1 on each side of robot)

Could I use the same button to lower each and raise each by doing the following

OIToRelay (3,1,2,1) //jostick on port 3 trigger button forward to relay 2

OIToRelay (3,2,2,2) //joystick on port 3 thumb button reverse to relay 2

OIToRelay (3,1,3,1) //jostick on port 3 trigger button forward to relay 3

OIToRelay (3,2,3,2) //joystick on port 3 thumb button reverse to relay 3

Would it cause problems trying to use the same input to control relay outputs???

Branden Ghena 18-02-2007 12:57

Re: Would the following work!?!
 
I may be a little confusing for the operator, but it should probably work.

Kingofl337 19-02-2007 11:27

Re: Would the following work!?!
 
You can do multiple events with a single button push so you can have two spikes fire from one button.

So this will work very well.

OIToRelay (3,1,2,1) //jostick on port 3 trigger button forward to relay 2

OIToRelay (3,2,2,2) //joystick on port 3 thumb button reverse to relay 2

OIToRelay (3,1,3,1) //jostick on port 3 trigger button forward to relay 3

OIToRelay (3,2,3,2) //joystick on port 3 thumb button reverse to relay 3


All times are GMT -5. The time now is 04:46.

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