Changeset 82 in flair-bin for trunk/tools/scripts
- Timestamp:
- Jan 8, 2019, 5:45:01 PM (6 years ago)
- Location:
- trunk/tools/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/scripts/dualshock3.sh
r66 r82 3 3 4 4 #on kernel >=4.13, ds3 is seen as a mouse 5 /usr/bin/xinput set-prop 'Sony PLAYSTATION(R)3 Controller' 'Device Enabled' 0 5 #search every ds3 connected and disable them 6 for id in `xinput --list|grep 'Sony PLAYSTATION(R)3 Controller'|perl -ne 'while (m/id=(\d+)/g){print "$1\n";}'`; do 7 xinput set-prop $id 'Device Enabled' 0 8 done 6 9 7 10 #This script is the only one that calls itself with sudo. -
trunk/tools/scripts/dualshock3_local_usb.sh
r28 r82 1 1 #! /bin/bash 2 ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3_usb.sh 127.0.0.1 2 ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3_usb.sh 127.0.0.1 $* -
trunk/tools/scripts/dualshock3_usb.sh
r28 r82 3 3 4 4 # $1 is the drone ip 5 if [ "$#" - ne 1] ; then6 echo "Usage: $0 drone_ip_address "5 if [ "$#" -gt 2 ] ; then 6 echo "Usage: $0 drone_ip_address (drone_port, default 20000)" 7 7 exit 1 8 8 fi 9 9 10 $FLAIR_ROOT/flair-bin/tools/scripts/dualshock3.sh -a ${1}:20000 -c usb -t 100 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.xml 10 # use default port 11 PORT=${2} 12 if [ "$#" -eq 1 ] ; then 13 PORT="20000" 14 fi 11 15 16 $FLAIR_ROOT/flair-bin/tools/scripts/dualshock3.sh -a ${1}:$PORT -c usb -t 100 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.xml 17
Note:
See TracChangeset
for help on using the changeset viewer.