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.
Diff: main.cpp
- Revision:
- 49:76fcaffb92ef
- Parent:
- 48:77009dca23a8
- Child:
- 50:84723ac07ea5
--- a/main.cpp Thu Jun 02 10:55:04 2022 +0200
+++ b/main.cpp Thu Jun 02 09:42:26 2022 +0000
@@ -5,7 +5,7 @@
// #include "Eigen/Dense.h"
#include "QMC5883L.h"
#include "LinearCharacteristics.h"
-//#include "NEOM9N.h"
+#include "NEOM9N.h"
// logical variable main task
bool do_execute_main_task = true; // this variable will be toggled via the user button (blue button) to or not to execute the main task
@@ -35,7 +35,7 @@
float mag_val[3] = {0.0f, 0.0f, 0.0f};
// create object for GNSS Sensor NEO-M9N
- //NEOM9N neom9n(PA_9, PA_10); // UART1
+ NEOM9N neom9n(PA_9, PA_10); // UART1
//NEOM9N neom9n(PA_2, PA_3); // UART2
// attach button fall and rise functions to user button object
@@ -69,7 +69,7 @@
// do only output via serial what's really necessary (this makes your code slow)
printf("%f, %f, %f\r\n", mag_val[0], mag_val[1], mag_val[2]);
- //printf("GPS time: %d, num sat: %d, lat: %d, lon: %d, speed: %d, heading: %d\r\n", neom9n.actualPVT.itow, neom9n.actualPVT.numSV, neom9n.actualPVT.lat, neom9n.actualPVT.lon, neom9n.actualPVT.speed, neom9n.actualPVT.headMot);
+ printf("GPS time: %d, num sat: %d, lat: %d, lon: %d, speed: %d, heading: %d\r\n", neom9n.actualPVT.itow, neom9n.actualPVT.numSV, neom9n.actualPVT.lat, neom9n.actualPVT.lon, neom9n.actualPVT.speed, neom9n.actualPVT.headMot);
// read timer and make the main thread sleep for the remaining time span (non blocking)
int main_task_elapsed_time_ms = std::chrono::duration_cast<std::chrono::milliseconds>(main_task_timer.elapsed_time()).count();