 #define BPS_HOST 9600
 #define COMMS_BUFFER_SIZE 1024
 #define SERIAL_HOST_DELAY_MS 10000
-
+#define SCAN_STEP_DELAY_MS 600
 /* 
  * ultra sonic telemeter mesure
  */

	IN_CMD,
	IN_SERVO,
	IN_STEPPER,
	SENSOR_MESURE
};


				while (!(input = userInput(NULL)));
			value = atoi(input);
			stepperCommand(value);
			newState = IN_CMD;
			break;

		case IN_SCAN_PARAMETERS:
			int stSt, stNb, srSt, srNb, srFr;
			if (!(input = userInput("STEPPER STEP: ")))
				while (!(input = userInput(NULL)));
			stSt = atoi(input);
			if (!(input = userInput("STEPPER NBR: ")))
				while (!(input = userInput(NULL)));
			stNb = atoi(input);
			if (!(input = userInput("SERVO STEP: ")))
				while (!(input = userInput(NULL)));
			srSt = atoi(input);
			if (!(input = userInput("SERVO NBR: ")))
				while (!(input = userInput(NULL)));
			srNb = atoi(input);
			if (!(input = userInput("SERVO FROM: ")))
				while (!(input = userInput(NULL)));
			srFr = atoi(input);
			telemeterscan(stSt, stNb, srSt, srNb, srFr);
			newState = IN_CMD;
			break;

