Skip to content

Commit

Permalink
add calibrate for big robot
Browse files Browse the repository at this point in the history
  • Loading branch information
kshpv committed Feb 20, 2019
1 parent b93a745 commit 165e50a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions eurobot_stm/scripts/manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ def send_command(self, cmd, args):
# if don't get response a lot of time



def calibrate_step_motor(self):
# 1) collector move left
# 2) start calibration right stepper
# 3) make step down by right stepper
# 4) collector move right
# 5) start calibration left stepper
# 6) make step down by left stepper
# 7) make step down by left stepper
# 9) collector move default
def calibrate_small_robot(self):
self.send_command("manipulator-calibrate_step_motor_1", 48)

def calibrate_big_robot(self):
# 1) collector move left
# 2) start calibration right stepper
# 3) make step down by right stepper
# 4) collector move right
# 5) start calibration left stepper
# 6) make step down by left stepper
# 7) make step down by left stepper
# 9) collector move default
self.send_command("manipulator-calibrate_step_motor_1", 33)
self.send_command("manipulator-calibrate_step_motor_2", 48, 1)

Expand Down

0 comments on commit 165e50a

Please sign in to comment.