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:
kudrom
Date:
2015-12-11
Revision:
7:448de3b31a48
Parent:
4:b2fe3a2545bf

File content as of revision 7:448de3b31a48:

#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;
};
}