Change how different sensor types ar handled

This commit is contained in:
2026-07-06 13:57:09 -06:00
parent 6eb2993391
commit 8fc5088c01
21 changed files with 320 additions and 124 deletions
+9 -4
View File
@@ -11,9 +11,10 @@ offset | size | type | description
9 | 1 byte | bool | peer provides euler orientation
10 | 1 byte | bool | peer provides quaternion orientation
"""
var data_labels = ["Date Time", "PNT", "Accel", "Gyro", "Magnet", "Euler", "Quat"]
var data_labels = ["Date Time", "PNT", "Accel", "Gyro", "Magnet", "Euler", "Quat", "2D Lidar"]
var provided_data: Array = [0, 0, 0, 0, 0, 0, 0]
var sensor_class: String = ''
var provided_data: Array = [0, 0, 0, 0, 0, 0, 0, 0]
var data_columns: Array
@export var data_column_scene: PackedScene
@@ -35,5 +36,9 @@ func _setup_data_columns():
func _process(delta: float) -> void:
pass
func set_provided_data(incoming_provided_data):
provided_data = incoming_provided_data
func set_provided_data(incoming_sensor_class: String):
sensor_class = incoming_sensor_class.capitalize()
if incoming_sensor_class == "VEHICLE":
provided_data = [0, 1, 1, 1, 1, 0, 0, 0]
elif incoming_sensor_class == "LIDAR_2D":
provided_data = [0, 1, 1, 1, 0, 0, 0, 1]