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:
- 48:77009dca23a8
- Parent:
- 47:c74d09a252d4
- Child:
- 49:76fcaffb92ef
--- a/main.cpp Thu Jun 02 07:43:14 2022 +0000
+++ b/main.cpp Thu Jun 02 10:55:04 2022 +0200
@@ -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
@@ -36,7 +36,7 @@
// create object for GNSS Sensor NEO-M9N
//NEOM9N neom9n(PA_9, PA_10); // UART1
- NEOM9N neom9n(PA_2, PA_3); // UART2
+ //NEOM9N neom9n(PA_2, PA_3); // UART2
// attach button fall and rise functions to user button object
user_button.fall(&user_button_pressed_fcn);
@@ -68,8 +68,8 @@
user_led = !user_led;
// 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("%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);
// 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();