changes in operation: testing

This commit is contained in:
Björn Ellensohn 2023-08-22 10:15:58 +02:00
parent d8800f94dc
commit a6dff4d0e1

View File

@ -68,7 +68,7 @@ class StateMachineNode(Node):
if msg.chassis_mode == 0: if msg.chassis_mode == 0:
self.chassis_mode = State.DISABLED self.chassis_mode = State.DISABLED
self.state = State.DISABLED self.state = State.DISABLED
self.get_logger().info('Set chassis_mode to' + str(self.state)) self.get_logger().info('Set chassis_mode to' + str(self.state.value))
if msg.chassis_mode == 1: # Assuming 1 represents enabled and 0 represents disabled if msg.chassis_mode == 1: # Assuming 1 represents enabled and 0 represents disabled
self.chassis_mode = State.ENABLED self.chassis_mode = State.ENABLED
self.state = State.ENABLED self.state = State.ENABLED