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 Gyroscope by
Revision 4:55f97d30c14f, committed 2018-10-11
- Comitter:
- danilloaguiar
- Date:
- Thu Oct 11 01:54:08 2018 +0000
- Parent:
- 3:78402ec2d9c0
- Commit message:
- Gyroscope with kalman
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 03 01:06:06 2018 +0000
+++ b/main.cpp Thu Oct 11 01:54:08 2018 +0000
@@ -7,7 +7,7 @@
#define RAD_TO_DEG 180/3.14
Kalman kalmanX; // Create the Kalman instances
Kalman kalmanY;
-Serial pc(PA_9, PA_10); // tx, rx
+Serial pc(PA_2, PA_3); // tx, rx
LSM6DS3 LSM6DS3(PB_7, PB_6);
//FXOS8700CQ fxos(PTE25,PTE24);
//Data fxos_acc;
@@ -133,5 +133,5 @@
pc.printf("\n");
pc.printf("%.2f",pitch);
pc.printf("\n");
- wait_ms(500);
+ wait_ms(100);
}
\ No newline at end of file
