Library to interface mbed with ArduIMU
Arduimu.h
- Committer:
- ifwui
- Date:
- 2014-03-24
- Revision:
- 0:d0d40a6fe11c
File content as of revision 0:d0d40a6fe11c:
#ifndef MBED_ARDUIMU_H #define MBED_ARDUIMU_H #include "mbed.h" class Arduimu { public: Arduimu(PinName tx, PinName rx); float getRoll(); float getPitch(); float getYaw(); void getOrientation(float& roll, float& pitch, float& yaw); void putc(char c); private: Serial imu; void receive(); float roll; float pitch; float yaw; }; #endif