mirror of
https://github.com/bjoernellens1/rmp220_middleware.git
synced 2024-11-21 23:43:46 +00:00
diabled auto-enable
This commit is contained in:
parent
b0c31017a6
commit
e74409a6f7
@ -62,10 +62,10 @@ class StateMachineNode(Node):
|
||||
self.get_logger().info('Disabling chassis...')
|
||||
|
||||
def joy_callback(self, msg):
|
||||
if self.state == State.DISABLED and self.cmd_vel_sub is not None:
|
||||
self.state = State.ENABLED
|
||||
self.get_logger().info("State: ENABLED (Joystick)")
|
||||
self.enable_chassis()
|
||||
# if self.state == State.DISABLED and self.cmd_vel_sub is not None:
|
||||
# self.state = State.ENABLED
|
||||
# self.get_logger().info("State: ENABLED (Joystick)")
|
||||
# self.enable_chassis()
|
||||
if self.state == State.DISABLED and msg.buttons[7] == 1: # Joystick button 'start'
|
||||
self.state = State.ENABLED
|
||||
self.get_logger().info("State: ENABLED (Button 'start')")
|
||||
|
Loading…
Reference in New Issue
Block a user