fix: interface names

This commit is contained in:
David
2025-05-26 02:34:16 +00:00
parent 1d0292b4c9
commit 9f3ff0f8df
2 changed files with 3 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ class SerialRelay(Node):
pass pass
def send_control(self, msg): def send_control(self, msg: BioControl):
# CITADEL Control Commands # CITADEL Control Commands
################ ################
@@ -143,7 +143,7 @@ class SerialRelay(Node):
# LSS (SCYTHE) # LSS (SCYTHE)
command = "can_relay_tovic,citadel,24," + str(msg.lss_direction) + "\n" command = "can_relay_tovic,citadel,24," + str(msg.bio_arm) + "\n"
self.send_cmd(command) self.send_cmd(command)
# Vibration Motor # Vibration Motor
command = "can_relay_tovic,citadel,26," + str(msg.vibration_motor) + "\n" command = "can_relay_tovic,citadel,26," + str(msg.vibration_motor) + "\n"

View File

@@ -206,7 +206,7 @@ class SerialRelay(Node):
self.core_feedback.bno_gyro.x = float(parts[3]) self.core_feedback.bno_gyro.x = float(parts[3])
self.core_feedback.bno_gyro.y = float(parts[4]) self.core_feedback.bno_gyro.y = float(parts[4])
self.core_feedback.bno_gyro.z = float(parts[5]) self.core_feedback.bno_gyro.z = float(parts[5])
self.core_feedback.imu_calib = float(parts[6]) self.core_feedback.imu_calib = int(parts[6])
elif output.startswith("can_relay_fromvic,core,52"):#Accel x,y,z, heading *10 elif output.startswith("can_relay_fromvic,core,52"):#Accel x,y,z, heading *10
self.core_feedback.bno_accel.x = float(parts[3]) self.core_feedback.bno_accel.x = float(parts[3])
self.core_feedback.bno_accel.y = float(parts[4]) self.core_feedback.bno_accel.y = float(parts[4])