Right now there's goofery going on whenever one of the desired euler angles is close to 2pi.
The control error keeps jumping and creating instantaneous torques whenever it gets close to the desired orientation.
-The desired angle continues to rise and the sat keeps spinning
This is probably due to how the error is calculated (using euler angles)
May need to use quaternions (just a little bit, we can do the math with quats then convert back to euler)
This is probably due to how the error is calculated (using euler angles)
May need to use quaternions (just a little bit, we can do the math with quats then convert back to euler)
Pic of behavior: