Get Help
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Installing and Running PoMoCo 2
Installing the Servotor32 Library
Identifying your Firmware Version
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Run another move by writing its name inside a ‘move’ funciton. This move’s file is MoveName.py, but here we can execute it as such:
1 | move('Move Name') |
1 2 | import time #import the time library time.sleep(1) #wait on second |
1 2 3 4 5 6 7 8 9 | hexy.LF #Left Front hexy.LM #Left Middle hexy.LB #Left Back hexy.RF #Right Front hexy.RM #Right Middle hexy.RB #Right Back hexy.neck #hexy neck |
1 2 3 | hexy.LF.hip() #Left Front Hip hexy.LF.knee() #Left Front Knee hexy.LF.ankle() #Left Front Ankle |
1 | hexy.RF.hip(30) |
1 | hexy.LB.setFootY(60) |
1 | hexy.LB.replantFoot(45) |
1 | hexy.legs |
1 2 3 4 | for leg in hexy.legs: leg.hip(angle) leg.knee(angle) leg.ankle(angle) |
1 2 | hexy.tripod1 # tripod1 = RF,LM,RB hexy.tripod2 # tripod2 = LF,RM,LB |
1 2 3 4 5 | for leg in hexy.tripod1: leg.hip(-30) for leg in hexy.tripod2: leg.hip(30) |