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

lib/datatypes.h

Committer:
sillevl
Date:
2016-01-20
Revision:
12:4cb092df6958
Parent:
7:448de3b31a48

File content as of revision 12:4cb092df6958:

#pragma once

namespace m3dpi
{
struct Distance {
    int front;
    int front_right;
    int right;
    int back_right;
    int back;
    int back_left;
    int left;
    int front_left;
};

struct Acceleration{
    int x;
    int y; 
    int z;
};

struct Rotation{
    int x;
    int y; 
    int z;
};

struct Direction{
    int x;
    int y; 
    int z;
};
}