checked zero velocity. working by stopping pwm