use callback to save data from gnss module

This commit is contained in:
2022-12-18 10:04:05 +01:00
parent 49145d2b0f
commit 377b0ea03b
5 changed files with 73 additions and 51 deletions
+6 -2
View File
@@ -39,6 +39,9 @@ class Point{
double lat = 0;
double lon = 0;
uint8_t fixType = -1;
uint8_t carrierSolution = -1;
uint32_t horizontalAccuracy = -1;
/**
* @brief checks if to points are equal
@@ -52,12 +55,13 @@ class Point{
}
/**
* @brief Checks if the Point is valid
* @brief Checks if the Point is initalized.
*
* @return true
* @return false
*/
bool isValid() const { return this->lat + this->lon; }
bool isInit() const { return this->lat + this->lon; }
bool isValid() const { return (this->horizontalAccuracy < 5000) ? true : false; }
double distanceTo(const Point& point) const;
double courseTo(const Point& point) const;