|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Hey all! I need some help. What I am trying to do is have telop.vi setup so that when the joysticks are all the way forward I only get 25% of the maximum power that the motors could have. And when I need full power I just press BOTH of the number 1 buttons on my joysticks and then go forward for full power! I have tried everything I could think of. I am using a two motor tank drive system. Thanks!!!
P.S Need help fast! friday is last programming day!!!! |
|
#2
|
|||||
|
|||||
|
Re: Motor Speed with joysticks
One way to do this would be to pass the joystick values through a case structure before they go to the Robot Drive VI you are using (Arcade, Tank, etc.)
Wire the two buttons you want to have pressed into an AND and the result of the AND into the Case Selector Terminal (the little green question mark). Now if both buttons are pressed you will be in the True case and if either or both aren't pressed you will be in the False case. Now we need to put the correct operations in each case. In the True case you want full forward on the sticks to be full power, this means that the joystick values should pass straight through the case structure unmodified. In the false case you want to scale the value down to 25% of the maximum. To accomplish this divide each of the joystick axis values by 4 in the false case before passing them out. |
|
#3
|
|||
|
|||
|
that did it! Thanks so much! Quick question. I bought a replacment camera for the robot but it's not an axis. do you know what all I would have to change to get it to work with this? also is there a way to make the solenoid retract the kicker(cylinder) after it kicks the ball. I don't want it to stay out past two seconds and if i could make it retract for me that would be great! Thanks SO MUCH!!!!!
|
|
#4
|
|||
|
|||
|
Re: Motor Speed with joysticks
I'm afraid the driver for "all cameras except the Axis 206" is probably not installed.
What I'm getting at is that there is not nearly enough information to help you out. Depending on what you purchased, it could work or partially work. Without even know the manufacturer, my statistical guess is no, it will not work. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Joysticks with circular motion | Tom Line | Electrical | 28 | 04-03-2009 20:07 |
| Motor speed sensing with the Jaguar motor controller? | mminutto | FRC Control System | 5 | 13-01-2009 18:13 |
| problem with motor speed | bsbllpss | Electrical | 3 | 29-01-2008 10:07 |
| RoboEmu v1.02 (now with real joysticks!) | rbayer | Programming | 2 | 02-10-2002 15:24 |
| Calibrating speed controllers and joysticks | thedillybar | Technical Discussion | 4 | 11-02-2002 13:24 |