|
Re: Backwards motor
Be careful with that method, if you push the sticks full forward you (theoretically) get 254, adding anything more than 1 to that will cause it to wrap around to 0 and trigger a high speed reversal, that'll make driving kind of difficult.
You could put a software cap that limits joystick input to 254 - bias, whatever it ends up being, then the slower motor will reach full speed and the faster one won't, but that isn't perfect either. A percentage based bias adjustment, plus a sanity check to prevent wrap around would be a good solution.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|