Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem_conMOD mbed-rtos mbed
Fork of f4_sd_imu_4 by
Diff: accellerometro.h
- Revision:
- 9:7f0c1261e905
- Parent:
- 3:3b2b8b0955f9
- Child:
- 11:3b5e035ffef9
--- a/accellerometro.h Sat Nov 25 17:49:55 2017 +0000 +++ b/accellerometro.h Wed Dec 13 21:06:23 2017 +0000 @@ -61,6 +61,9 @@ ay = (float)accelCount[1]*aRes - accelBias[1]; az = (float)accelCount[2]*aRes - accelBias[2]; + fprintf(fp,"A%03.0f%03.0f%03.0f\n\r", 100*ax+400, 100*ay+400, 100*az+400); + + mpu6050.readGyroData(gyroCount); // Read the x/y/z adc values mpu6050.getGres(); @@ -107,8 +110,6 @@ pc.printf("q2 = %f\n\r", q[2]); pc.printf("q3 = %f\n\r", q[3]); */ - - // Define output variables from updated quaternion---these are Tait-Bryan angles, commonly used in aircraft orientation. // In this coordinate system, the positive z-axis is down toward Earth.