Skip to content

Commit

Permalink
update brake
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiwit.p committed Sep 16, 2022
1 parent 81385d0 commit db3f385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moteus_drive/moteus_drive/moteus_control/MoteusDrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def run(self):
position = math.nan,
velocity = 0.0,
maximum_torque = self.servo_command[device_id]["maximum_torque"],
stop_position = self.servo_command[device_id]["position"] + 20.0,
stop_position = self.servo_command[device_id]["position"] + self.servo_command[device_id]["velocity"],
query=True
)
)
Expand Down Expand Up @@ -97,6 +97,7 @@ def set_state_terminated(self):
self.get_logger().info('MoteusDriveState: %s' % self.state)

def set_state_brake(self):
# self.state = "brake"
self.state = "stop"
self.get_logger().info('MoteusDriveState: %s' % self.state)

Expand Down

0 comments on commit db3f385

Please sign in to comment.