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.
Fork of MPU9250 by
main.cpp@2:855c83d4c7d6, 2016-08-06 (annotated)
- Committer:
- gitakichi
- Date:
- Sat Aug 06 11:46:39 2016 +0000
- Revision:
- 2:855c83d4c7d6
- Parent:
- 1:a3ced0ecbcf8
???
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| imanyonok | 0:ccea261dce7a | 1 | #include "mbed.h" |
| gitakichi | 2:855c83d4c7d6 | 2 | #include "attitude.h" |
| gitakichi | 1:a3ced0ecbcf8 | 3 | |
| gitakichi | 1:a3ced0ecbcf8 | 4 | Serial pc(USBTX, USBRX); // tx, rx |
| imanyonok | 0:ccea261dce7a | 5 | |
| imanyonok | 0:ccea261dce7a | 6 | int main() |
| imanyonok | 0:ccea261dce7a | 7 | { |
| gitakichi | 2:855c83d4c7d6 | 8 | pc.baud(9600); |
| gitakichi | 1:a3ced0ecbcf8 | 9 | attitude_setup(); |
| gitakichi | 1:a3ced0ecbcf8 | 10 | |
| gitakichi | 1:a3ced0ecbcf8 | 11 | while(1) { |
| gitakichi | 1:a3ced0ecbcf8 | 12 | attitude_get(); |
| gitakichi | 1:a3ced0ecbcf8 | 13 | pc.printf("Yaw, Pitch, Roll: %.0f %.0f %.0f \n\r", yaw, pitch, roll); |
| gitakichi | 1:a3ced0ecbcf8 | 14 | } |
| imanyonok | 0:ccea261dce7a | 15 | |
| gitakichi | 1:a3ced0ecbcf8 | 16 | } |
