summaryrefslogtreecommitdiff
path: root/digital/beacon/src/laser.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/laser.h')
-rw-r--r--digital/beacon/src/laser.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/digital/beacon/src/laser.h b/digital/beacon/src/laser.h
index f50c5b07..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 */
@@ -64,6 +65,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