Quote:
Originally Posted by eyeswideopened
They want me to make the paddle at the bottom control the throttle
...
(the throttle is for the chain drive which powers the frisbee thrower)
|
This gets done the same way you use the regular joystick movement to control the drive motors. You're just taking the control from a different axis.
Here's an example, but change the
axis 2(y) to
axis 3 (throttle), and
Joystick 1 becomes
Joystick 3 or whichever joystick you name to control all this:
Quote:
|
and then use the trigger to shoot the frisbee.
|
That would be your pneumatics. So something like this (but change Joystick 1 to Joystick 3 again):
The compressor also needs code like this to run:
Quote:
|
They want buttons 6 and 7 to be the up and down for the lifting arms while climbing. I am not sure how to make 6 just motor up and 7 just motor down.
|
There's been a bunch of others asking how to do just this.
It does depend on what device you'll be using to control the arm motor (Spike or motor controller). But here's a general answer from somebody else that assumes a speed controller is being used:
http://www.chiefdelphi.com/forums/showpost.php?p=1121889&postcount=8