![]() |
Need Serious Gimungous Huge Major Seriously Awesome Help
I need a button code for operating our arm on our robot. Any code would be nice. :D Thank you.
P.S.- We have a single joystick code, if that matters at all. |
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
Quote:
What button are you using? What do you want to have happen when you press the button? The code you want has to implement that. After you give some real specifications for what you want, we can start giving useful suggestions on how to meet them. |
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
Alrgiht, we have a pneumatic arm with three different cylinders, one for lifting, and two for extension. We need code to operate these three cylinders with one joystick, so we can have another for driving. We need three different buttons to operate each cylinder, the first press to activate the cylinder out, and the second press of the same button to retract it.
|
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
Check out this thread.
What you're looking for is a way to toggle a relay output with a button tap. There were several solutions mentioned. |
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
The code we saw is not working. Where in the Default Code do we put it? Or what is another code?
|
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
Quote:
In the Default_Routine() function in user_routines.c, use this code: Code:
static char last_trig = 0; // this is what the switch state was last time |
Re: Need Serious Gimungous Huge Major Seriously Awesome Help
Thanks. I think we are going to use the trigger, left hand button on the top, and thumb button.
|
| All times are GMT -5. The time now is 09:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi