ready to test capture Route and Autopiloz
This commit is contained in:
@@ -26,7 +26,7 @@ struct CourseCorrection {
|
||||
};
|
||||
class Navigation {
|
||||
public:
|
||||
Navigation(uint8_t rx, uint8_t tx);
|
||||
Navigation(uint8_t rx, uint8_t tx, Route* route = nullptr);
|
||||
~Navigation();
|
||||
void loop();
|
||||
|
||||
@@ -38,6 +38,7 @@ class Navigation {
|
||||
bool addCurrentPosToRoute();
|
||||
|
||||
TinyGPSPlus* getGPS() { return this->gps; }
|
||||
RouteInfo getRouteInfo() const { return this->route->getRouteInfo(); }
|
||||
|
||||
private:
|
||||
Point currentLocation();
|
||||
@@ -47,7 +48,7 @@ class Navigation {
|
||||
static double courseTo(Point p1, Point p2);
|
||||
|
||||
TinyGPSPlus* gps;
|
||||
Route* route;
|
||||
Route* route = nullptr;
|
||||
|
||||
Point lastPoint;
|
||||
Point targetPoint;
|
||||
|
||||
Reference in New Issue
Block a user