mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
revert changes for split
This commit is contained in:
@@ -165,8 +165,7 @@ class SerialRelay(Node):
|
||||
def updateAngleFeedback(self, msg):
|
||||
# Angle feedbacks,
|
||||
#split the msg.data by commas
|
||||
msg_str = msg.data
|
||||
parts = msg_str.split(",")
|
||||
parts = msg.split(",")
|
||||
|
||||
if len(parts) >= 7:
|
||||
# Extract the angles from the string
|
||||
@@ -200,8 +199,7 @@ class SerialRelay(Node):
|
||||
|
||||
def updateBusVoltage(self, msg):
|
||||
# Bus Voltage feedbacks
|
||||
msg_str = msg.data
|
||||
parts = msg_str.split(",")
|
||||
parts = msg.split(",")
|
||||
if len(parts) >= 7:
|
||||
# Extract the voltage from the string
|
||||
voltages_in = parts[3:7]
|
||||
@@ -215,8 +213,7 @@ class SerialRelay(Node):
|
||||
|
||||
def updateMotorFeedback(self, msg):
|
||||
# Motor voltage/current/temperature feedback
|
||||
msg_str = msg.data
|
||||
parts = msg_str.split(",")
|
||||
parts = msg.split(",")
|
||||
if len(parts) >= 7:
|
||||
# Extract the voltage/current/temperature from the string
|
||||
values_in = parts[3:7]
|
||||
|
||||
Reference in New Issue
Block a user