Hello, I want to rotate a stepper by 180 degrees. It's step angle is 1.8 degrees. I will be very thankful if anyone can help me with its C code.
<CODE void ROTATE180DEGREES ( void ) { double ANGEL;
ANGEL = 0;
BACK:
MAKESTEP ( );
ANGEL = ANGEL + 1.8
if ( ANGEL > 179.99 ) goto DONE;
goto BACK;
DONE:
return ; }
<CODEEND>