From b4d8344ae068467679c733998ef9e0a2cbb6956c Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 16 May 2012 17:31:53 +0200 Subject: digital/beacon: sending angle management --- digital/beacon/src/laser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'digital/beacon/src/laser.h') diff --git a/digital/beacon/src/laser.h b/digital/beacon/src/laser.h index f50c5b07..f0d32d93 100644 --- a/digital/beacon/src/laser.h +++ b/digital/beacon/src/laser.h @@ -64,6 +64,9 @@ uint16_t laser_get_angle_raw(void); float laser_get_angle_degrees(void); /* This function sets the angle value in raw format */ -void laser_set_angle_raw(uint16_t angle); +void laser_set_angle(uint16_t angle); + +/* This function resets the angle id variable */ +void laser_reset_angle_id(void); #endif -- cgit v1.2.3 From 631377be1c9e9e35de5346b70eb70f2ed8f38537 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 16 May 2012 17:33:13 +0200 Subject: digital/beacon: fix laser struct --- digital/beacon/src/laser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'digital/beacon/src/laser.h') diff --git a/digital/beacon/src/laser.h b/digital/beacon/src/laser.h index f0d32d93..f58cb3c8 100644 --- a/digital/beacon/src/laser.h +++ b/digital/beacon/src/laser.h @@ -40,6 +40,7 @@ typedef enum typedef struct { uint16_t angle; + uint16_t angle_id; } laser_s; /* This function initializes the laser pin input and associated interrupt */ -- cgit v1.2.3