Adding lidar sensor handling
This commit is contained in:
@@ -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