My corners script for testing pen height and drag. References "paxi" which is my wrapper around fogleman/axi with the prepended "p" because it activates a python venv before executing a command.

This commit is contained in:
mattmcw 2021-03-16 20:06:20 -04:00
parent 45957471c3
commit 1a881e890c
1 changed files with 26 additions and 0 deletions

26
corners.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/bash
#script for testing pen positions across a rectangle
#used to test for pen drag
SCALE=1.255
XPOS=`echo "scale=5;$1*$SCALE" | bc`
YPOS=`echo "scale=5;$2*$SCALE" | bc`
touch () {
paxi down
sleep 1
paxi up
paxi home
}
touch
paxi move 0 ${YPOS}
touch
paxi move ${XPOS} 0
touch
paxi move ${XPOS} ${YPOS}
touch