Quote:
Originally Posted by Patrick Chiang
"If the shoot button on the joystick is pressed, and neither of the arm limit switches are hit, and arm encoder value is less than calibrated base value plus (magic multiplier times shooter position)", execute shoot sequence.
It could be simplified...
|
Without a clear definition of what the shoot sequence is, and what the conditions are for starting it off, I can't be confident that what I'm thinking of in LabVIEW would be equivalent. But I'd probably put the limit switch and arm encoder checks in the first part of the sequence itself.
Quote:
|
If you want the same functionality in LV, you're still going to need at least 6 operators, and that's not counting the negation blocks.
|
How do you count 6? I'd do it with a single AND, a single multiply, and a single comparison.