From 4efdf0a0700c26cdfa3d00d35186cb17190db87f Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Fri, 11 May 2012 00:10:12 +0200 Subject: digital/beacon: servo offset is computed according to the scanning sense --- digital/beacon/src/calibration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digital/beacon/src/calibration.c b/digital/beacon/src/calibration.c index aadac9dc..1392519f 100644 --- a/digital/beacon/src/calibration.c +++ b/digital/beacon/src/calibration.c @@ -122,7 +122,7 @@ void calibration_task(void) calibration_set_laser_flag(CLEAR); /* Laser detected the aim, reset the servo with the previous value and update the servo status */ - servo_set_value(servo,servo_get_value(servo)+FAST_SCANNING_OFFSET); + servo_set_value(servo,servo_get_value(servo)+servo_get_scanning_sense(servo)*FAST_SCANNING_OFFSET); servo_set_state(servo,SERVO_SCANNING_FAST_FINISHED); if((servo_get_state(SERVO_1) == SERVO_SCANNING_FAST_FINISHED) && (servo_get_state(SERVO_2) == SERVO_SCANNING_FAST_FINISHED)) -- cgit v1.2.3