In this video I augment the PD controller to handle reaction wheels that are not pointed along the X Y and Z axes. As long as your reaction wheels form an orthonormal basis this controller will work. It even works for any number of reaction wheels.
All code currently here but just comment if the link is broken.
https://github.com/cmontalvo251/aeros...