|
Re: Limit Switchers Logic Problem
Personally, I'd read all the jstick buttons and limit switches. Then look at the jstick buttons to decide what to do with the motor disregarding the limits. You need some logic about multiple buttons being pushed, but you can build a lookup integer from the the three bits or you can do lots of logic.
After you decide what to do with the motor, look at the limits. One limit forces negative numbers to zero, the other forces positive to zero.
Greg McKaskle
|