From b918019c6bd7d07ffc22e5a0bf91b699a7bace1a Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Sun, 22 Apr 2012 22:47:32 +0200 Subject: digital/beacon: add get/set angle functions for laser structure --- digital/beacon/src/laser.c | 17 +++++++++++++++++ digital/beacon/src/laser.h | 6 ++++++ 2 files changed, 23 insertions(+) (limited to 'digital') diff --git a/digital/beacon/src/laser.c b/digital/beacon/src/laser.c index 0dc01e58..ffbdbcbb 100644 --- a/digital/beacon/src/laser.c +++ b/digital/beacon/src/laser.c @@ -33,6 +33,9 @@ laser_s laser; /* This function initializes the laser pin input and associated interrupt */ void laser_init(void) { + /* Init laser structiure */ + laser_set_angle(0); + /* Configure Input compare interrupts for Laser Interrupt*/ TCCR3B |= (1<