Design of a digital controller for a tracking telescope