mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-24 16:45:07 +00:00
changes in operation: testing
This commit is contained in:
parent
7d081e7c66
commit
0ea5b0c55e
@ -124,8 +124,8 @@ class StateMachineNode(Node):
|
||||
self.timeout = 20.0
|
||||
|
||||
def timer_callback(self):
|
||||
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
|
||||
# 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
|
||||
if self.chassis_mode == State.ENABLED:
|
||||
if self.timeout <= 0:
|
||||
self.state = State.PAUSED
|
||||
|
Loading…
Reference in New Issue
Block a user