Changed to vehicle sensor instead of single sensor types
This commit is contained in:
@@ -11,9 +11,9 @@ func _on_data_received(source_ip: String, timestamp_list: Array, sat_counts: Arr
|
||||
if source_ip != ip_address:
|
||||
return
|
||||
var msg_timestamp = timestamp_list[0] * 3600 + timestamp_list[1] * 60 + timestamp_list[2] + timestamp_list[3]
|
||||
if not Constants.is_timestamp_newer(timestamp, msg_timestamp):
|
||||
if not Constants.is_timestamp_newer(latest_timestamp, msg_timestamp):
|
||||
return
|
||||
timestamp = msg_timestamp
|
||||
latest_timestamp = msg_timestamp
|
||||
var sat_ids = []
|
||||
for sat_data in sat_positions:
|
||||
sat_ids.append(sat_data[0])
|
||||
|
||||
Reference in New Issue
Block a user