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???

I may be a little confusing for the operator, but it should probably 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