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
@@ -12,10 +12,9 @@ func _ready() -> void:
if north_deg == null:
north_deg = 0.
north_rad = deg_to_rad(north_deg)
Signals.heading_updated.connect(_on_heading_updated)
indicator = get_node("CompassIndicator")
func _on_heading_updated(sensor_ip: String, heading_rad: float):
if not check_valid_sensor(sensor_ip, "MAG"):
func _update_data():
if indicator == null:
return
indicator.rotation = north_rad + heading_rad
indicator.rotation = host_vehicle.heading_rad