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:
- 21:06a9547359dc
- Parent:
- 20:01bba4071ffc
- Child:
- 22:10de7ce8fee3
--- a/main.cpp Tue Jun 28 13:46:58 2016 +0000
+++ b/main.cpp Wed Jun 29 02:27:17 2016 +0000
@@ -135,6 +135,17 @@
ahrs[i]->q2,
ahrs[i]->q3);
*/
+ /*
+ //test signal 29,June wada
+ float2byte(-200,32.8);
+ float2byte( 0,32.8);
+ float2byte( 200,32.8);
+ float2byte(-0.2,32800);
+ float2byte( 0,32800);
+ float2byte( 0.4,32800);
+ float2byte( 0.8,32800);
+ */
+
float2byte(imu[i]->gyroscope_data[0],32.8);
float2byte(imu[i]->gyroscope_data[1],32.8);
float2byte(imu[i]->gyroscope_data[2],32.8);
@@ -142,6 +153,7 @@
float2byte(ahrs[i]->q1,32800);
float2byte(ahrs[i]->q2,32800);
float2byte(ahrs[i]->q3,32800);
+
}
#ifdef DEBUG_putc
pc.putc(0x12); //ETX
