From a64fb816764b34b7bee2dc886c7efaa2c8bf0539 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 16 May 2012 17:28:12 +0200 Subject: digital/beacon: Improve calibration state machine --- digital/beacon/src/calibration.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'digital/beacon/src/calibration.h') diff --git a/digital/beacon/src/calibration.h b/digital/beacon/src/calibration.h index 3512eedf..cb6ef303 100644 --- a/digital/beacon/src/calibration.h +++ b/digital/beacon/src/calibration.h @@ -28,16 +28,17 @@ #include "servo.h" -#define CALIBRATION_FAST_TASK_PERIOD 11L -#define CALIBRATION_SLOW_TASK_PERIOD 110L +#define CALIBRATION_FAST_TASK_PERIOD 22L +#define CALIBRATION_SLOW_TASK_PERIOD 22L -#define FAST_SCANNING_OFFSET 10 +#define FAST_SCANNING_OFFSET 20 #define SCANNING_STEP 1 typedef enum { - CLEAR, - SET + SET_SERVO_1, + SET_SERVO_2, + CLEAR } TLaser_flag_type; typedef enum -- cgit v1.2.3