What you are probably seeing is the motor is turning 180 degrees, not the robot. What programming language are you using?