From 26c7a6d6a89ceb1a63b12bfd3a9d4e7a3d1ad27b Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Fri, 11 May 2012 00:05:57 +0200 Subject: digital/beacon: use ICR3 only for angle computation --- digital/beacon/src/laser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/digital/beacon/src/laser.c b/digital/beacon/src/laser.c index bc5b7466..bd8be64b 100644 --- a/digital/beacon/src/laser.c +++ b/digital/beacon/src/laser.c @@ -186,6 +186,8 @@ ISR(TIMER3_CAPT_vect) /* Recompute the angle value */ virtual_angle = (virtual_angle + ICR3) / 2; + /* UseI ICR3 for now*/ + virtual_angle = ICR3; /* It's a falling edge so potentially current_angle could be a real one */ laser_set_angle(virtual_angle); -- cgit v1.2.3