nirhaim1942
22-01-2007, 11:16
Hello everybody,
I have some problems in programming the controller.
when i tried to printf() the result of sin() function the terminal dosen't show nothing.
the code's lines:
==================
float result,angle;
float PI = 3.14;
angle=30.0;
result= sin (angle*PI/180);
printf("the sine of angle %f is %f",angle,result);
=============
if somebody knows how to reslove this problem it will be great.
thanks
Nir Haim
TEAM 1942.
I have some problems in programming the controller.
when i tried to printf() the result of sin() function the terminal dosen't show nothing.
the code's lines:
==================
float result,angle;
float PI = 3.14;
angle=30.0;
result= sin (angle*PI/180);
printf("the sine of angle %f is %f",angle,result);
=============
if somebody knows how to reslove this problem it will be great.
thanks
Nir Haim
TEAM 1942.