39 lines
654 B
C++
39 lines
654 B
C++
/**
|
|
* @file navigation.h
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2022-01-10
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
|
|
#ifndef NAVIGATION_H
|
|
#define NAVIGATION_H
|
|
|
|
#include <TinyGPS++.h>
|
|
#include <Arduino.h>
|
|
#include <iostream>
|
|
|
|
#include "route.h"
|
|
|
|
#define MIN_DISTANCE_BETWEEN_POINTS 1
|
|
class Navigation {
|
|
public:
|
|
Navigation(uint8_t rx, uint8_t tx);
|
|
~Navigation();
|
|
void loop();
|
|
|
|
Point addCurrentPosToRoute();
|
|
|
|
TinyGPSPlus* getGPS() { return this->gps; }
|
|
|
|
private:
|
|
TinyGPSPlus* gps;
|
|
Route* route;
|
|
|
|
Point lastPoint;
|
|
};
|
|
|
|
#endif // NAVIGATION_H
|