View Full Version : coding help
How can I do the exact opposite of the code I wrote. Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5
http://img24.imageshack.us/img24/8360/75756217.png
Greg McKaskle
09-02-2010, 10:22
The Boolean palette contains a negate icon, and you can place that in front of the case. Another, possible easier to read way of doing this is to right click on the case and at the bottom Make this case ... will allow you to choose which code goes with which button logic.
Greg McKaskle
Alan Anderson
09-02-2010, 12:26
Instead of pressing button 1 for half speed I want it to press button 1 for a turbo boost and regular would be .5
I think we might have misunderstood what you were asking in an earlier thread. When you say you want the motor to run half speed, do you want it to run at half of its maximum speed, or do you mean you want it to run at half of whatever speed the driver is commanding via the joystick?
If your goal is to make the joystick half as sensitive, you don't want to wire a constant 0.5 into the drive vi. You want to multiply the joystick axis value by 0.5 instead. Use your joystick button to send the value straight through without the multiply in the "turbo boost" case.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.