Find out what up vectors are and how they can help you to rig cannons, eyes, forearm twist a whole bunch of other stuff.
If you found this interesting, you might also want to check out the piston rigging tutorial: https://ace5studios.com/piston/