Changed to vehicle sensor instead of single sensor types

This commit is contained in:
2026-07-04 23:49:20 -06:00
parent 55522fc6fc
commit 10e9a0f5df
147 changed files with 523 additions and 8763 deletions
@@ -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