Move over-estimation GPS DOP adjustment

pull/1447/head
Piero Toffanin 2022-03-20 22:57:42 -04:00
rodzic 14f03a5c5f
commit 2e87505ce7
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -354,6 +354,12 @@ class ODM_Photo:
'@Camera:GPSZAccuracy',
'GPSZAccuracy'
], float)
# Account for over-estimation
if self.gps_xy_stddev is not None:
self.gps_xy_stddev *= 2.0
if self.gps_z_stddev is not None:
self.gps_z_stddev *= 2.0
if 'DLS:Yaw' in xtags:
self.set_attr_from_xmp_tag('dls_yaw', xtags, ['DLS:Yaw'], float)
@ -701,8 +707,6 @@ class ODM_Photo:
dop = self.get_gps_dop()
if dop is None:
dop = 10.0 # Default
else:
dop *= 2.0 # Account for over-estimation
gps['dop'] = dop