Robot team project

Dependencies:   QEI Motordriver ros_lib_melodic

Revision:
1:d5adc483bce0
Parent:
0:57855aafa907
Child:
2:c537f1ebad7b
diff -r 57855aafa907 -r d5adc483bce0 sensor/Sensor.h
--- a/sensor/Sensor.h	Tue Oct 22 09:12:03 2019 +0000
+++ b/sensor/Sensor.h	Tue Oct 22 09:41:35 2019 +0000
@@ -73,12 +73,11 @@
 public:
     /** Create a VL6180 object at I2C specified address (7 bit).
     * 
-    * @param address I2C address
     * @param sda I2C sda pin number
     * @param scl I2C scl pin number
     * @param shdn I2C shdn pin number
     */
-    Sensor(char address, PinName sda, PinName scl, PinName shdn);
+    Sensor(PinName sda, PinName scl, PinName shdn);
     
     /** Init the sensor
     *
@@ -89,6 +88,10 @@
     *
     */
     int read();
+    
+    void changeAddress(char address);
+    void turnOff();
+    void turnOn();
         
 private:
     char addr;