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
+1 -1
View File
@@ -26,7 +26,7 @@ offset_left = -50.0
offset_top = -22.0
offset_right = 50.0
offset_bottom = 23.0
theme_override_font_sizes/font_size = 32
theme_override_font_sizes/font_size = 48
horizontal_alignment = 1
[node name="Line2D" type="Line2D" parent="." unique_id=1285997474]
+1 -1
View File
@@ -26,7 +26,7 @@ offset_left = -50.0
offset_top = -22.0
offset_right = 50.0
offset_bottom = 23.0
theme_override_font_sizes/font_size = 32
theme_override_font_sizes/font_size = 48
horizontal_alignment = 1
[node name="Line2D" type="Line2D" parent="." unique_id=1446923009]
@@ -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"