|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Servo on joystick
There's actually an easier way then that. Go into (I think it's Comparison) palette and look for a Switch. I forgot it's exact name, but basically it looks like a triangle with a T and F inputs on the top and bottom and a case on the middle. It just passes the data through depending on the value of the input.
|
|
#2
|
||||
|
||||
|
Re: Servo on joystick
Quote:
in c++ you could do some thing similar with a boolean variable: Code:
int main()
{
bool virtualdigin1;
if digin1==1
{
virtualdigin1=0;
}
else
{
virtualdigin1=1;
}
}
Last edited by PAR_WIG1350 : 27-04-2010 at 18:56. |
|
#3
|
|||||
|
|||||
|
Re: Servo on joystick
It is. The solution proposed by Bill is a case structure, I proposed a switch.
|
|
#4
|
||||
|
||||
|
Re: Servo on joystick
Here is a picture of what Apalrd suggested. He is right, it is even easier than what I suggested.
|
|
#5
|
||||
|
||||
|
Re: Servo on joystick
Not that it won't work, but controlling a button with a servo seems like it's adding additional potential points of failure unnecessarily.Servo controlled features do have their place, but i'm not sure this is it.
If the servo and button are on 2 separate systems, then I suggest a relay instead of a button that must be physically connected with the servo and then made to work together. on the other hand, if the system controlling the servo also receives the input from the button, the issue could probably be fixed in programming. However, if you still feel these solutions won't work and you need some sort of electromechanical actuator, a solenoid might be better (assuming this isn't ON the robot, if it is, the input from the button and servo output are both handled by one system so you should fix it in the code) of course, since this is a black project there could be some major detail I don't know about that makes this your only option, in which case, disregard this. Last edited by PAR_WIG1350 : 27-04-2010 at 23:36. |
|
#6
|
|||||
|
|||||
|
Re: Servo on joystick
Controlling a button with a servo? I think you have it backwards. I hope you have it backwards. I'm pretty sure the question was how to control a servo with a joystick button.
|
|
#7
|
||||
|
||||
|
Re: Servo on joystick
Quote:
Quote:
Although, when you read the OP's original question, you can see why there is room for confusion. It's amazing how our language can open to so many different interpretations. |
|
#8
|
||||
|
||||
|
Re: Servo on joystick
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Servo control with a joystick | Robototes2412 | Java | 5 | 09-05-2010 19:31 |
| Joystick Read modification to breakout joystick buttons | sparks-1784 | NI LabVIEW | 2 | 02-03-2010 14:54 |
| Joystick-Servo control | Lumit | NI LabVIEW | 1 | 08-02-2010 23:21 |
| Camera servo control off of the Joystick axes | m3rc1l3ss | NI LabVIEW | 5 | 13-03-2009 20:00 |
| Servo behavior question / advanced servo/PIC programming question | DanL | Electrical | 12 | 18-10-2005 18:33 |