Code:

double check;

...

while(check == 0.00001){
my.pan += 1;
wait(1);
}



This will probably not work. To check it, set "check = 0.00001;" and try the while loop.

I say probably because, depending on the compiler, it might work in this case. But it is always a bad idea to compare floating point values using "==" since the numbers are not always exact.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI