Adding lidar sensor handling

This commit is contained in:
2026-07-08 20:58:21 -06:00
parent 8fc5088c01
commit 04f3e2ba07
19 changed files with 145 additions and 31 deletions
@@ -16,4 +16,4 @@ func _update_data():
if sprite == null or label == null:
return
sprite.rotation = host_vehicle.pitch_rad
label.text = str(round(rad_to_deg(host_vehicle.pitch_rad)*10)/10) + " \u00B0"
label.text = str(int(rad_to_deg(host_vehicle.pitch_rad))) + " \u00B0"
+1 -1
View File
@@ -15,4 +15,4 @@ func _update_data():
if sprite == null or label == null:
return
sprite.rotation = host_vehicle.roll_rad
label.text = str(abs(round(rad_to_deg(host_vehicle.roll_rad)*10)/10)) + " \u00B0"
label.text = str(abs(int(rad_to_deg(host_vehicle.roll_rad)))) + " \u00B0"