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

Fix gps point data having negative lat or long

parent ecf42c05
No related branches found
No related tags found
No related merge requests found
......@@ -76,14 +76,16 @@ class GPSWidget(QtWidgets.QWidget):
lat_dir = 'N' if picked_point.latitude > 0 else 'S'
long_dir = 'E' if picked_point.longitude > 0 else 'W'
lat = abs(picked_point.latitude)
long = abs(picked_point.longitude)
meta_separator = ' ' * 22
loc_separator = ' ' * 10
msg = (
f'Mark: {picked_point.last_timemark}{meta_separator}'
f'Fix: {picked_point.fix_type}{meta_separator}'
f'Sats: {picked_point.num_satellite_used}<br>'
f'Lat: {lat_dir}{picked_point.latitude:.6f}{loc_separator}'
f'Long: {long_dir}{picked_point.longitude:.6f}{loc_separator}'
f'Lat: {lat_dir}{lat:.6f}{loc_separator}'
f'Long: {long_dir}{long:.6f}{loc_separator}'
f'Elev: {picked_point.height}{picked_point.height_unit}'
)
displayTrackingInfo(self.tracking_box, msg)
......
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