Skip to content
Snippets Groups Projects
Commit e1603cf7 authored by Kien Le's avatar Kien Le
Browse files

Add method to check if a GPS point is bad

parent 71ded981
No related branches found
No related tags found
1 merge request!53Implement a dialog to plot and export GPS data
......@@ -12,3 +12,11 @@ class GPSPoint(NamedTuple):
longitude: float
height: float
height_unit: str
def is_bad_point(self) -> bool:
"""
Return True if this point is a bad point and False otherwise. A point
is bad if all its location data and number of satellites used are 0.
"""
return (self.num_satellite_used == 0 and self.latitude == 0 and
self.longitude == 0 and self.height == 0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment