Quote:
Originally Posted by Ether
The post and thread I linked above shows how to turn any angle into +/-180 degrees.
If you compute the angle error ( = target-gyro ) and feed that error into the computation, it will give you the setpoint you should use to go the shortest angle to get to your target (or just see below).
|
Duh! I wish I'd known that a couple of weeks ago. Would have saved me some time. Learn something new everyday.