Hi ajit,

I'm not sure that I completely understand the question.

I'm curious where you found this line. I've never seen it anywhere before.

Desire_Degree=(TS*slope)+intercept; slope = 0.00227272727273;Intercept :- 102.272727273;

I'm assuming that this is a single axis sun tracker?

It sounds like the "Desire_Degree" is related to the position of the sun, correct?

It also sounds like you are trying to change the position of the machine by turning the motors on for a short period of time to move it to the new angle.

For that you would need to know how much longer or shorter the linear actuator must become. What I do is a calculate the length of the actuator at the machine's current angle, then I calculate the length of the actuator at the new angle and subtract one from the other.

This tells me how far the linear actuator must move.

If for example it must move 10mm and the motors move it at a rate of 5mm per second, then the linear actuator must be turned on for 2 seconds.

I'm not sure how accurate this method would be since I've never tried it, but I guess it would be good enough for sun tracking.

Also, I use the Law of Cosines to calculate how long the actuator must be.

http://en.wikipedia.org/wiki/Law_of_cosinesAgain I'm not sure if I understood the question, but hopefully I was able to help some.

Gabriel