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
Revision 3:6dbefedce7fe, committed 2013-08-27
- Comitter:
- maetugr
- Date:
- Tue Aug 27 22:18:25 2013 +0000
- Parent:
- 2:ca8fd72a8f2b
- Child:
- 4:f62337b907e5
- Commit message:
- MODSERIAL and unneeded outputs deleted
Changed in this revision
MODSERIAL.lib | Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MODSERIAL.lib Tue Aug 27 22:14:26 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://mbed.org/users/AjK/code/MODSERIAL/#ae0408ebdd68
--- a/main.cpp Tue Aug 27 22:14:26 2013 +0000 +++ b/main.cpp Tue Aug 27 22:18:25 2013 +0000 @@ -24,9 +24,7 @@ Dutycycler.attach(&dutycycle, RATE); // start to process all RATE seconds pc.attach(&executer); while(1) { - //pc.printf("G: X:%6.1f Y:%6.1f Z:%6.1f A: X:%6.1f Y:%6.1f Z:%6.1f dt:%1.2f\r\n", Gyro.data[0], Gyro.data[1], Gyro.data[2], Acc.data[0], Acc.data[1], Acc.data[2], dt_sensors*1000); - //pc.printf("Offset: X:%6.1f Y:%6.1f Z:%6.1f dt:%1.2f\r\n", Acc.offset[0], Acc.offset[1], Acc.offset[2], dt_sensors*1000); - //pc.printf("M: X:%6.1f Y:%6.1f Z:%6.1f dt:%1.2f\r\n", Comp.data[0], Comp.data[1], Comp.data[2], dt_sensors*1000); + // just putting out the angle on console pc.printf("%f,%f,%f,%3.5fs,%3.5fs\r\n", IMU.angle[0], IMU.angle[1], IMU.angle[2], IMU.dt, IMU.dt_sensors); // Output for Python wait(0.01);