robot control in C for Simple IDE