From 1a881e890c6efa90cd0a5e8f11fec75c13f199d8 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Tue, 16 Mar 2021 20:06:20 -0400 Subject: [PATCH] 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. --- corners.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 corners.sh diff --git a/corners.sh b/corners.sh new file mode 100644 index 0000000..2575900 --- /dev/null +++ b/corners.sh @@ -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