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: MPU9250_SPI mbed
Fork of MPU9250_AHRS by
Diff: main.cpp
- Revision:
- 18:a4d18f4eb968
- Parent:
- 17:7a9459ac7469
- Child:
- 19:3fc0ecfc723a
--- a/main.cpp Wed Jun 22 13:06:36 2016 +0000
+++ b/main.cpp Tue Jun 28 06:18:52 2016 +0000
@@ -45,7 +45,7 @@
void init(void)
{
- pc.baud(921600);
+ pc.baud(9600); //921600
imu[0] = new mpu9250_spi(spi, p8);
imu[1] = new mpu9250_spi(spi, p9);
@@ -97,7 +97,13 @@
);
for(int i=0; i<2; i++)
- printf("%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,",
+ /*
+ printf("%+1.3f,%+1.3f,%+1.3f,",
+ imu[i]->accelerometer_data[0],
+ imu[i]->accelerometer_data[1],
+ imu[i]->accelerometer_data[2]);
+ */
+ printf("%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,%+0.3f,",
imu[i]->gyroscope_data[0]*DEGREE2RAD,
imu[i]->gyroscope_data[1]*DEGREE2RAD,
imu[i]->gyroscope_data[2]*DEGREE2RAD,
@@ -105,7 +111,7 @@
ahrs[i]->q1,
ahrs[i]->q2,
ahrs[i]->q3);
-
+
printf("\n");
}
