Robot team project

Dependencies:   QEI Motordriver ros_lib_melodic

Revision:
2:c537f1ebad7b
Parent:
1:d5adc483bce0
Child:
4:cb50c6fa340b
--- a/sensor/Sensor.h	Tue Oct 22 09:41:35 2019 +0000
+++ b/sensor/Sensor.h	Tue Oct 22 10:05:12 2019 +0000
@@ -3,7 +3,7 @@
 
 #include "mbed.h"
 
-#define DEFAULT_SENSOR_ADDRESS               0x29
+#define DEFAULT_DEVICE_ADDRESS               0x29
 
 #define FAILURE_RESET  -1
 
@@ -89,8 +89,19 @@
     */
     int read();
     
+    /** Change I2C address
+    * 
+    */
     void changeAddress(char address);
+    
+    /** Turn off the sensor
+    *   
+    */
     void turnOff();
+    
+    /** Turn on the sensor
+    * 
+    */
     void turnOn();
         
 private: