library for m3Dpi robot, based on the Pololu 3pi and m3pi. m3Dpi has multiple distance sensors, gyroscope, compass and accelerometer sensor to be fully aware of its environment. With the addition of xbee or nrf24n01 module it has wireless communication capabilities.

Dependencies:   m3pi ADXL345_I2C HMC5583L ITG3200 PCA9547 TLC59116 VL6180x RGB-fun xbee

Dependents:   m3Dpi-helloworld

Files at this revision

API Documentation at this revision

Comitter:
sillevl
Date:
Sat Dec 19 13:27:43 2015 +0000
Parent:
10:4200a8140b10
Child:
12:4cb092df6958
Commit message:
continuous mode for distance sensors

Changed in this revision

M3Dpi.cpp Show annotated file Show diff for this revision Revisions of this file
drivers/VL6180x.lib Show annotated file Show diff for this revision Revisions of this file
lib/vl6180xManager.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/M3Dpi.cpp	Sat Dec 19 10:42:51 2015 +0000
+++ b/M3Dpi.cpp	Sat Dec 19 13:27:43 2015 +0000
@@ -11,6 +11,9 @@
     distance(i2c),
     xbee(XBEE_TX, XBEE_RX, XBEE_RESET)
 {
+    
+    i2c.frequency(100000);   
+    
     xbee.baud(XBEE_BAUD);
     xbee.reset();
     
--- a/drivers/VL6180x.lib	Sat Dec 19 10:42:51 2015 +0000
+++ b/drivers/VL6180x.lib	Sat Dec 19 13:27:43 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/sillevl/code/VL6180x/#6a00afc8dc84
+https://developer.mbed.org/users/sillevl/code/VL6180x/#2e0406672e67
--- a/lib/vl6180xManager.cpp	Sat Dec 19 10:42:51 2015 +0000
+++ b/lib/vl6180xManager.cpp	Sat Dec 19 13:27:43 2015 +0000
@@ -16,6 +16,7 @@
     for(int i = 0; i < SENSOR_COUNT; i++) {
         select(i);
         sensor.initialize();
+        sensor.startContinuousOperation();
     }
 }