Changed to vehicle sensor instead of single sensor types
This commit is contained in:
@@ -14,15 +14,6 @@ var WGS84_AB = WGS84_A_M * WGS84_B_M
|
||||
var g = 9.80665
|
||||
|
||||
|
||||
func calc_time_diff(timestamp_1, timestamp_2):
|
||||
if timestamp_2 < 3600 and timestamp_1 > 82800:
|
||||
return (timestamp_2 + 86400) - timestamp_1
|
||||
return timestamp_2 - timestamp_1
|
||||
|
||||
func is_timestamp_newer(old_timestamp: float, new_timestamp: float) -> bool:
|
||||
if old_timestamp > 82800. and new_timestamp < 3600: # earlier than 23 hours
|
||||
return true
|
||||
return old_timestamp < new_timestamp
|
||||
|
||||
func calc_wgs84_altitude(latitude_rad: float):
|
||||
var theta_rad = abs(latitude_rad)
|
||||
|
||||
Reference in New Issue
Block a user