From def4197c0b8602313d6a552e6a86bfadb4885d68 Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Sun, 22 Mar 2026 22:53:51 +0100 Subject: [PATCH] Started main.cpp init --- src/main.cpp | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cb9fbba..2595708 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,18 +1,34 @@ -#include +#include "flags.h" + +#include +#include "modules/lcd/lcd.h" +#include "modules/gps/gps.h" +#include "modules/logger/system_logger.h" + + +system_logger *logger_output = new system_logger(&Serial); + +lcd *driver_display = new lcd(); +gps *gps_module = new gps(&Serial2, logger_output); -// put function declarations here: -int myFunction(int, int); void setup() { - // put your setup code here, to run once: - int result = myFunction(2, 3); + driver_display->init(); + driver_display->print_message("Starting Initialization"); + delay(1000); + + driver_display->print_message("Serial Init..."); + Serial.begin(115200); + delay(500); + driver_display->print_message("Serial Init Complete"); + delay(500); + + driver_display->print_message("GPS Init..."); + gps_module->init(); + delay(500); + driver_display->print_message("GPS Init Complete"); } void loop() { - // put your main code here, to run repeatedly: + gps_module->parse_task(500); } - -// put function definitions here: -int myFunction(int x, int y) { - return x + y; -} \ No newline at end of file