summaryrefslogtreecommitdiff
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-11 00:05:57 +0200
committerFlorent Duchon2012-05-11 00:16:45 +0200
commit26c7a6d6a89ceb1a63b12bfd3a9d4e7a3d1ad27b (patch)
tree0ddec0ae5fb11f226e26f5fa775e9cf7410f7a86 /digital/beacon
parentbe9707599969a1cf1a80bff6fb13fbcb8a4b659f (diff)
digital/beacon: use ICR3 only for angle computation
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/laser.c2
1 files changed, 2 insertions, 0 deletions
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);