Translating Screen Coordinates [ x, y ] to Camera Pan and Tilt angles

have a robot pan/tilt and want to translate normalized coordinate between 0 and 1 to irl canvas, then find the degree to which the servos have to use to turn. The pan and tilt is placed at the centre of the canvas with distance z.

The stat position of my servos is 90

I multiplied the normalized coordinates for the x = (x * canvasW) and the Ypoint = (y * canvasH) giving me the points the new place but how do I determine the x and y angles to assign to the pan/tilt movements?

any algorithm that will guide to me achieve my goal ??

submitted by /u/lukedelray
[link] [comments]      

Author: AliensFaith
HighTech FinTech researcher, university lecturer & Scholar. He is studying his second doctoral degree at the Hague International University. Studying different fields of Sciences gave him a broad understanding of various aspects of life. His recent researches covered AI, Machine-learning & Automation concepts. The Information Technology Skills & Knowledge gave his company a higher position over other regional high-tech consultancy services. The other qualities and activities which can describe him are a Hobbyist Programmer, Achiever, Strategic Thinker, Futuristic person, and Frequent Traveler.
%d bloggers like this: