Add a zig zag motion to dodge the pegs on the peg bar

This commit is contained in:
Matt McWilliams 2021-09-16 01:19:32 -04:00
parent a08078fee0
commit 14315a80b3
1 changed files with 4 additions and 1 deletions

View File

@ -1,12 +1,15 @@
#!/bin/bash #!/bin/bash
X=4.2 XZIG=1.0
X=3.2 //4.2 - XZIG
Y=1.25 Y=1.25
if [ "${1}" == "set" ]; then if [ "${1}" == "set" ]; then
paxi move $XZIG 0
paxi move 0 $Y paxi move 0 $Y
paxi move $X 0 paxi move $X 0
elif [ "${1}" == "reset" ]; then elif [ "${1}" == "reset" ]; then
paxi move -$X 0 paxi move -$X 0
paxi move 0 -$Y paxi move 0 -$Y
paxi move -$XZIG 0
fi fi