Quote:
Originally Posted by EricS-Team180
We used AnyMark swerves and had about 330deg of rotation before we would get wire wind-up and pull the connectors apart. So we calculated a "keepout" zone based on whether the wheels were commanded forward or reverse. If your current steering request put you in the keepout zone, then flip the wheel and reverse the wheel direction. We used a -180 < 0 < 180 compass for the steering calculations.
Hurdle #1 was getting the angle bookkeeping right.
However, this could produce a "shopping cart" shuck in the steering, as we tried to also use a field-centric stick, and the driver commanded forward and reverse near the keepout.
I finally concluded that you need to track the last pass steering command and bookkeep a 180deg reverse direction +/- a ...say...10deg band. If your current steering request put you in that band, then what you really wanted to do was reverse wheel direction. Then you could compare this new commanded steering angle and wheel direction to your keepout.
I never got to try this. After the Florida Regional, we reverted to robot-oriented sticks and finished the season with them.
|
Thanks for the detailed explanation. What you described above largely parallels the thinking process I went through. I've got scribbled notes and had planned to write it up but haven't had a chance yet.