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.
Revision 18:07e990a9a3ed, committed 2019-12-17
- Comitter:
- Arithemetica
- Date:
- Tue Dec 17 14:31:09 2019 +0000
- Parent:
- 17:629b2f317d0a
- Child:
- 19:3ee54f9a56f3
- Commit message:
- remove main.cpp
Changed in this revision
| main.cpp | Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Dec 17 14:30:08 2019 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#include "imu_driver.hpp"
-
-SPI spi2(PB_15, PB_14, PB_13); //1Mbps default, MOSI MISO SCLK, forIMU
-Serial pc(USBTX, USBRX, 115200); // print debug message
-
-int main()
-{
- ImuDriver<spi2, PC_4, PB_2, PB_1> imu(ImuExtiRcvAhrsMsg); //SPI instance, reset, data ready, slave select
-
- pc.printf("start\n\r");
-
- while(true) {
-// wait_ms(10);
-// pc.printf("%d\n\r", imu.imuRawData.status);
- pc.printf("% .3f, % .3f, % .3f\n\r", imu.ahrsProcessedData.attitude[0], imu.ahrsProcessedData.attitude[1], imu.ahrsProcessedData.attitude[2]);
- }
-}