From 0e573d8a3f3bf83c208caa7f0fe946d8f5194526 Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Fri, 25 Oct 2024 14:30:19 -0400 Subject: [PATCH] Add an alias to reconnect to a previously-paired game controller --- etc/turtlebot4/aliases.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/turtlebot4/aliases.bash b/etc/turtlebot4/aliases.bash index d4a4270..0a68fd8 100644 --- a/etc/turtlebot4/aliases.bash +++ b/etc/turtlebot4/aliases.bash @@ -21,3 +21,5 @@ alias turtlebot4-source='source $ROBOT_SETUP' # Update all packages alias turtlebot4-update='sudo apt update && sudo apt upgrade' +# Re-connect a previously-paired game controller +alias turtlebot4-connect-controller='bluetoothctl connect $(bt-device -l|grep "Wireless Controller" | grep -o "..:..:..:..:..:..")'