|
Re: check code
You need to feed the Tank Drive with the default joystick inputs, unless overridden by the trigger. Your figure looks only half-fixed.
My attached pic doesn't directly apply to you, but if you look closely you can see where we used button 1 (trigger) to modify the throttle input. When the case is FALSE, we pass the normal value thru, but when the case is TRUE (i.e. the trigger is pulled), we override with a constant.
For us, the constant is 1.0 ... but if you want half power, then put a 0.5 in there and you've got it. (and we're doing our override to Axis3(Throttle), you'd want to do your case statement over the Y-Axis wires between the Joystick GET and the TankDrive VI.
G/L!
|