changes in operation: testing

This commit is contained in:
Björn Ellensohn 2023-08-22 09:52:18 +02:00
parent d31d81b7c3
commit ef0914eb60

View File

@ -126,7 +126,7 @@ class StateMachineNode(Node):
def timer_callback(self): def timer_callback(self):
# if self.chassis_mode == State.DISABLED or self.chassis_mode == State.STOPPED or self.chassis_mode == State.PASSIVE: # if self.chassis_mode == State.DISABLED or self.chassis_mode == State.STOPPED or self.chassis_mode == State.PASSIVE:
# return # Do nothing if chassis is disabled, stopped or passive --> should save processing power # return # Do nothing if chassis is disabled, stopped or passive --> should save processing power
if self.chassis_mode == State.ENABLED: if self.state == State.ENABLED:
if self.timeout <= 0: if self.timeout <= 0:
self.state = State.PAUSED self.state = State.PAUSED
self.get_logger().info("State: PAUSED (Timeout)") self.get_logger().info("State: PAUSED (Timeout)")