33 lines
598 B
C++
33 lines
598 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 <Arduino.h>
|
|
|
|
#include "coordinate.h"
|
|
|
|
class Navigation {
|
|
public:
|
|
Navigation(uint32_t baud, uint8_t rx, uint8_t tx);
|
|
|
|
void addCoordinateToRoute(Coordinate coordinate);
|
|
void addCurrentCoordinateToRoute();
|
|
void delRoute();
|
|
|
|
double getDistanceToLastCoordinate();
|
|
|
|
private:
|
|
Coordinate *lastCoordinate;
|
|
};
|
|
|
|
#endif // NAVIGATION_H
|