public void resetEncodedMotorPosition(int motor)
        {
                if (!isConnected())
                {
                        error("Robot is not connected!", "RXTXRobot", "resetEncodedMotorPosition");
                        return;
                }
                if (!getOverrideValidation() && (motor < RXTXRobot.MOTOR1 || motor > RXTXRobot.MOTOR2))
                {
                        error("resetEncodedMotorPosition was not given a correct motor argument", "RXTXRobot", "resetEncodedMotorPosition");
                        return;
                }
                if (!"".equals(sendRaw("z " + motor))) 
                {
                        debug("Done resetting the encoder tick count");
                }
                else
                {
                        error("Empty response from the arduino");
                }
        }