An fully working IMU-Filter and Sensor drivers for the 10DOF-Board over I2C. All in one simple class. Include, calibrate sensors, call read, get angles. (3D Visualisation code for Python also included) Sensors: L3G4200D, ADXL345, HMC5883, BMP085

Dependencies:   mbed

Committer:
maetugr
Date:
Thu Aug 29 13:52:30 2013 +0000
Revision:
4:f62337b907e5
Parent:
0:3e7450f1a938
The Altitude Sensor is now implemented, it's really 10DOF now ;); TODO: Autocalibration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maetugr 0:3e7450f1a938 1 // by MaEtUgR
maetugr 0:3e7450f1a938 2
maetugr 0:3e7450f1a938 3 #ifndef LED_H
maetugr 0:3e7450f1a938 4 #define LED_H
maetugr 0:3e7450f1a938 5
maetugr 0:3e7450f1a938 6 #include "mbed.h"
maetugr 0:3e7450f1a938 7
maetugr 0:3e7450f1a938 8 class LED {
maetugr 0:3e7450f1a938 9
maetugr 0:3e7450f1a938 10 public:
maetugr 0:3e7450f1a938 11 LED();
maetugr 0:3e7450f1a938 12 void shownumber(int number);
maetugr 0:3e7450f1a938 13 void ride(int times);
maetugr 0:3e7450f1a938 14 void roll(int times);
maetugr 0:3e7450f1a938 15 void rollnext();
maetugr 0:3e7450f1a938 16 void tilt(int index);
maetugr 0:3e7450f1a938 17 void set(int index);
maetugr 0:3e7450f1a938 18 void reset(int index);
maetugr 0:3e7450f1a938 19 int check(int index);
maetugr 0:3e7450f1a938 20 void operator=(int value);
maetugr 0:3e7450f1a938 21
maetugr 0:3e7450f1a938 22 private:
maetugr 0:3e7450f1a938 23 BusOut Led;
maetugr 0:3e7450f1a938 24 int roller;
maetugr 0:3e7450f1a938 25 };
maetugr 0:3e7450f1a938 26
maetugr 0:3e7450f1a938 27 #endif