Adding lidar sensor handling
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user