Start with Capture Route

This commit is contained in:
2022-01-31 21:12:11 +01:00
parent ab4ceb8b09
commit d356b28ffb
24 changed files with 327 additions and 320 deletions
+1 -9
View File
@@ -1,10 +1,2 @@
//GPS Serial Pins
#define GPS_RX 17
#define GPS_TX 16
#define GPS_BAUD 9600
// PS3 Controller
// ESP32 MAC BL 24:62:AB:F2:4B:3A
#define CONTROLLER_MAC "24:62:AB:F2:4B:3A"
-53
View File
@@ -1,53 +0,0 @@
// #ifndef ROUTE_H
// #define ROUTE_H
// #include <cstdint>
// #include <list>
// #include <TinyGPS++.h>
// #include <Arduino.h>
// #include "motorControl.h"
// #include "speedometer.h"
// #include "debugMqtt.h"
// #include "config.h"
// struct Point{
// double lat = 0;
// double lon = 0;
// bool operator==(const Point& rhs) const {
// return this->lat == rhs.lat && this->lon == rhs.lon;
// }
// };
// class Route {
// public:
// Route();
// void runRoute();
// void addPointToRoute(Point point);
// void addCurrentLocationToRoute();
// void delRoute();
// void resetRoute();
// Point startRoute();
// Point getNextPoint();
// uint16_t getNumberOfPoints();
// static double getDis(Point point_1, Point point_2);
// private:
// bool nearlySameLocation(Point p1, Point p2);
// std::list<Point> points;
// std::list<Point>::iterator it;
// Point currentLocation;
// uint16_t count_points = 0;
// bool route_started = false;
// bool route_finished = false;
// };
// #endif // ROUTE_H