From 4c2cdcb040f4b4695e8a195c8477bc9dc66485ef Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Mon, 10 May 2021 15:40:01 +0200 Subject: [PATCH] rearrange the folder structure --- src/{ => driveModi}/autopilot.cpp | 0 src/{ => driveModi}/autopilot.h | 2 +- src/driveModi/manualControl.cpp | 0 src/driveModi/manualControl.h | 0 src/{ => hardware}/motorControl.cpp | 0 src/{ => hardware}/motorControl.h | 0 src/{ => hardware}/speedometer.cpp | 0 src/{ => hardware}/speedometer.h | 0 src/hardware/underfloorLighting.cpp | 0 src/hardware/underfloorLighting.h | 0 src/main.cpp | 4 ++-- src/moveControl.h | 4 ++-- src/route.h | 4 ++-- 13 files changed, 7 insertions(+), 7 deletions(-) rename src/{ => driveModi}/autopilot.cpp (100%) rename src/{ => driveModi}/autopilot.h (90%) create mode 100644 src/driveModi/manualControl.cpp create mode 100644 src/driveModi/manualControl.h rename src/{ => hardware}/motorControl.cpp (100%) rename src/{ => hardware}/motorControl.h (100%) rename src/{ => hardware}/speedometer.cpp (100%) rename src/{ => hardware}/speedometer.h (100%) create mode 100644 src/hardware/underfloorLighting.cpp create mode 100644 src/hardware/underfloorLighting.h diff --git a/src/autopilot.cpp b/src/driveModi/autopilot.cpp similarity index 100% rename from src/autopilot.cpp rename to src/driveModi/autopilot.cpp diff --git a/src/autopilot.h b/src/driveModi/autopilot.h similarity index 90% rename from src/autopilot.h rename to src/driveModi/autopilot.h index a05c0c5..ae6becc 100644 --- a/src/autopilot.h +++ b/src/driveModi/autopilot.h @@ -13,7 +13,7 @@ class Autopilot { private: Route *route; MoveControl *moveControl; - TinyGPSPlus * gps; + TinyGPSPlus *gps; }; diff --git a/src/driveModi/manualControl.cpp b/src/driveModi/manualControl.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/driveModi/manualControl.h b/src/driveModi/manualControl.h new file mode 100644 index 0000000..e69de29 diff --git a/src/motorControl.cpp b/src/hardware/motorControl.cpp similarity index 100% rename from src/motorControl.cpp rename to src/hardware/motorControl.cpp diff --git a/src/motorControl.h b/src/hardware/motorControl.h similarity index 100% rename from src/motorControl.h rename to src/hardware/motorControl.h diff --git a/src/speedometer.cpp b/src/hardware/speedometer.cpp similarity index 100% rename from src/speedometer.cpp rename to src/hardware/speedometer.cpp diff --git a/src/speedometer.h b/src/hardware/speedometer.h similarity index 100% rename from src/speedometer.h rename to src/hardware/speedometer.h diff --git a/src/hardware/underfloorLighting.cpp b/src/hardware/underfloorLighting.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/hardware/underfloorLighting.h b/src/hardware/underfloorLighting.h new file mode 100644 index 0000000..e69de29 diff --git a/src/main.cpp b/src/main.cpp index 626a0b7..10ba911 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,9 +5,9 @@ #include #include "config.h" -#include "motorControl.h" +#include "hardware/motorControl.h" #include "moveControl.h" -#include "speedometer.h" +#include "hardware/speedometer.h" #include "debugMqtt.h" void callbackControllerAction(); diff --git a/src/moveControl.h b/src/moveControl.h index 3bcab16..47bd57e 100644 --- a/src/moveControl.h +++ b/src/moveControl.h @@ -3,8 +3,8 @@ #include -#include "motorControl.h" -#include "speedometer.h" +#include "hardware/motorControl.h" +#include "hardware/speedometer.h" #include "config.h" #include "debugMqtt.h" diff --git a/src/route.h b/src/route.h index c1a5314..f392308 100644 --- a/src/route.h +++ b/src/route.h @@ -4,8 +4,8 @@ #include #include -#include "motorControl.h" -#include "speedometer.h" +#include "hardware/motorControl.h" +#include "hardware/speedometer.h" #include "config.h" struct Point{