mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-22 07:43:48 +00:00
changes in operation: testing
This commit is contained in:
parent
d395693a85
commit
374351c59e
@ -129,10 +129,10 @@ class StateMachineNode(Node):
|
|||||||
self.timeout = 20.0
|
self.timeout = 20.0
|
||||||
|
|
||||||
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.state == State.PAUSED or self.state == State.STOPPED or self.state == 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.state == State.PAUSED:
|
# if self.state == State.PAUSED:
|
||||||
return # Do nothing if state is paused --> should save processing power
|
# return # Do nothing if state is paused --> should save processing power
|
||||||
if self.state == State.ENABLED:
|
if self.state == State.ENABLED:
|
||||||
if self.timeout <= 0:
|
if self.timeout <= 0:
|
||||||
self.state = State.DISABLED
|
self.state = State.DISABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user