Changed to vehicle sensor instead of single sensor types
This commit is contained in:
@@ -42,19 +42,6 @@ func set_host_vehicle(new_vehicle):
|
||||
vehicle_3d_node = Node3D.new()
|
||||
add_child(vehicle_3d_node)
|
||||
|
||||
func check_valid_sensor(sensor_ip: String, sensor_class: String):
|
||||
if host_vehicle == null:
|
||||
return false
|
||||
if sensor_ip not in host_vehicle.sensors:
|
||||
return false
|
||||
if sensor_class == null:
|
||||
return true
|
||||
if sensor_class not in host_vehicle.sensor_classes:
|
||||
return false
|
||||
if sensor_ip not in host_vehicle.sensor_classes[sensor_class]:
|
||||
return false
|
||||
return true
|
||||
|
||||
func _on_sat_position_updated(sensor_ip: String, sat_position_data: Array):
|
||||
if vehicle_3d_node == null:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user