Thanks for the help, but I have another problem. The variable tilt_angR is set to another function, and I am having the same problem as before. Here is my code.
Quote:
tilt_angD = ((((int)TILT_SERVO - 124) * 65)/124));
tilt_angR = ((tilt_angD *3.14159265)/180.0);
dist = (80.0/tan(tilt_angR));
|
Thanks for the help.