refactor: change servo_position to servo_state

wiggle
This commit is contained in:
David
2025-05-25 23:25:23 +00:00
parent f34ef88d6c
commit 1d0292b4c9
2 changed files with 3 additions and 3 deletions

View File

@@ -138,8 +138,8 @@ class SerialRelay(Node):
self.send_cmd(command) self.send_cmd(command)
# Servos, only send if not zero # Servos, only send if not zero
if msg.servo_id != 0: if msg.servo_id != 0:
command = "can_relay_tovic,citadel,25," + str(msg.servo_id) + "," + str(msg.servo_position) + "\n" command = "can_relay_tovic,citadel,25," + str(msg.servo_id) + "," + str(int(msg.servo_state)) + "\n"
self.send_cmd(command) self.send_cmd(command)
# LSS (SCYTHE) # LSS (SCYTHE)