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

Revision:
4:b2fe3a2545bf
Parent:
0:9f02ae958e20
Child:
10:4200a8140b10
--- a/lib/vl6180xManager.h	Thu Dec 03 08:19:42 2015 +0000
+++ b/lib/vl6180xManager.h	Thu Dec 03 16:34:59 2015 +0000
@@ -3,6 +3,7 @@
 #include "mbed.h"
 #include "PCA9547.h"
 #include "vl6180x.h"
+#include "datatypes.h"
 
 /*enum DistanceSensor{
     FRONT,
@@ -20,7 +21,8 @@
 public:
     VL6180xManager(PinName sda, PinName scl);
     void select(int index);
-    int* getAllDistance(int data[]);
+    m3dpi::Distance getAllDistance();
+    int getDistance(int index);
 
 protected: