summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-11 00:10:12 +0200
committerFlorent Duchon2012-05-11 00:16:46 +0200
commit4efdf0a0700c26cdfa3d00d35186cb17190db87f (patch)
tree662c9e2d19fa90a837bfdf782b6df8548a745db5 /digital/beacon
parentd0f9deabc0f63f225a358e95f436ccf742f888e6 (diff)
digital/beacon: servo offset is computed according to the scanning sense
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/calibration.c2
1 files changed, 1 insertions, 1 deletions
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))