Permalink
Browse files

updated joust for more efficiency when doing standard games

added scripts for modular installation
  • Loading branch information...
adangert committed Jan 31, 2017
1 parent 2c4d4c7 commit b00d6c27ea12f72d3057242f5f7d3e43f8e00382
Showing with 16 additions and 8 deletions.
  1. +9 −0 disable_internal_bluetooth.sh
  2. +2 −0 joust.py
  3. +5 −0 reset_bluetooth_connections.sh
  4. +0 −8 setup.sh
@@ -0,0 +1,9 @@
# this will disable on-board bluetooth
#this will allow only class one long range btdongles to connect to psmove controllers
sudo echo "dtoverlay=pi3-disable-bt" | sudo tee -a /boot/config.txt
sudo systemctl disable hciuart
#remove onboard bluetooth folders
sudo rm -rf /var/lib/bluetooth/*
sudo reboot
@@ -115,6 +115,8 @@ def track_move(move_serial, move_num, game_mode, team, team_num, dead_move, forc
move_last_value = total
move.update_leds()
else:
time.sleep(1)
class Joust():
@@ -0,0 +1,5 @@
#remove onboard bluetooth folders
sudo rm -rf /var/lib/bluetooth/*
sudo reboot
@@ -42,12 +42,4 @@ OLD='env_reset'
NEW='env_keep += "PYTHONPATH"'
sudo sed -i -e "s/$OLD/$NEW/g" /etc/sudoers
# this will disable on-board bluetooth
#this will allow only class one long range btdongles to connect to psmove controllers
sudo echo "dtoverlay=pi3-disable-bt" | sudo tee -a /boot/config.txt
sudo systemctl disable hciuart
#remove onboard bluetooth folders
sudo rm -rf /var/lib/bluetooth/*
sudo reboot

0 comments on commit b00d6c2

Please sign in to comment.