A little mock-up to test targeting the quad cannon from the Millennium Falcon.
I used Unity3D to calculate the spherical aiming model, and then I derived the servo values from there which are passed to an Arduino to control the servos. Pew, pew!
Millennium Falcon Quad Cannon Servo Test from Joshua Maruska on Vimeo.