use callback to save data from gnss module
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user