Skip to content

Commit

Permalink
[Beetle] change some detail of switch script
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Feb 19, 2024
1 parent 3911bbb commit 4729474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robots/beetle/script/switch_cmd_pub.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@
female_servo_handlers[index].sendTargetAngle(unlock_servo_angle_female)
else:
if switch_type:
male_servo_handlers[index].sendTargetAngle(lock_servo_angle_male)
female_servo_handlers[index].sendTargetAngle(lock_servo_angle_female)
time.sleep(1.0)
male_servo_handlers[index].sendTargetAngle(lock_servo_angle_male)
else:
male_servo_handlers[index].sendTargetAngle(unlock_servo_angle_male)
female_servo_handlers[index].sendTargetAngle(unlock_servo_angle_female)
time.sleep(1.0)
male_servo_handlers[index].sendTargetAngle(unlock_servo_angle_male)
else:
if switch_type:
docking_msg.data = True
Expand Down

0 comments on commit 4729474

Please sign in to comment.