revert changes for split

This commit is contained in:
Tristan McGinnis
2025-05-04 14:11:39 -05:00
committed by David
parent 0416277cd9
commit 3288aea14c

View File

@@ -165,8 +165,7 @@ class SerialRelay(Node):
def updateAngleFeedback(self, msg): def updateAngleFeedback(self, msg):
# Angle feedbacks, # Angle feedbacks,
#split the msg.data by commas #split the msg.data by commas
msg_str = msg.data parts = msg.split(",")
parts = msg_str.split(",")
if len(parts) >= 7: if len(parts) >= 7:
# Extract the angles from the string # Extract the angles from the string
@@ -200,8 +199,7 @@ class SerialRelay(Node):
def updateBusVoltage(self, msg): def updateBusVoltage(self, msg):
# Bus Voltage feedbacks # Bus Voltage feedbacks
msg_str = msg.data parts = msg.split(",")
parts = msg_str.split(",")
if len(parts) >= 7: if len(parts) >= 7:
# Extract the voltage from the string # Extract the voltage from the string
voltages_in = parts[3:7] voltages_in = parts[3:7]
@@ -215,8 +213,7 @@ class SerialRelay(Node):
def updateMotorFeedback(self, msg): def updateMotorFeedback(self, msg):
# Motor voltage/current/temperature feedback # Motor voltage/current/temperature feedback
msg_str = msg.data parts = msg.split(",")
parts = msg_str.split(",")
if len(parts) >= 7: if len(parts) >= 7:
# Extract the voltage/current/temperature from the string # Extract the voltage/current/temperature from the string
values_in = parts[3:7] values_in = parts[3:7]