From b2a4be3bafa43ef1c81c390c53c82306b5b70718 Mon Sep 17 00:00:00 2001 From: JeanotP1314 Date: Wed, 11 Jan 2017 12:13:25 -0800 Subject: [PATCH] Debug the installation on a Rpi --- README.md | 9 ++++++++- requirements.txt | 2 +- src/inputs.py | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 156b3d3..d323375 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ adapt the packages to your distribution First, install the required packages: sudo apt-get update -y - sudo apt-get install -y python3-dev python3-setuptools libjpeg-dev zlib1g-dev libpng12-dev libfreetype6-dev python3-pip libhidapi-libusb0 xboxdrv libopenhmd-dev + sudo apt-get install -y python3-dev python3-setuptools libjpeg-dev zlib1g-dev libpng12-dev libfreetype6-dev python3-pip libhidapi-libusb0 xboxdrv python3-numpy Then clone the project and install the dependencies: @@ -30,6 +30,13 @@ Then clone the project and install the dependencies: cd BeYourHero sudo pip3 install -r requirements.txt + cd /tmp + wget https://github.com/WayneKeenan/python-vrzero/raw/master/install/openhmd_0.0.1-1_armhf.deb + sudo dpkg -i openhmd_0.0.1-1_armhf.deb + sudo ldconfig + cd ~ + cd BeYourHero + ## Run Execute the script `src/RUN.py`: diff --git a/requirements.txt b/requirements.txt index abaa45b..5488464 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pyserial -numpy==1.11.0 +numpy Pillow pi3d==2.15 git+https://github.com/WayneKeenan/python-vrzero diff --git a/src/inputs.py b/src/inputs.py index 61945aa..2dbeda9 100755 --- a/src/inputs.py +++ b/src/inputs.py @@ -209,7 +209,6 @@ class handlers: orientation += 2 #self.body_orientation = 90 if self.mykeys.key_state("KEY_W"): #pi3d.event.Event.key_to_code('KEY_W'):#119: #key z forward - print("FRONT") self.z+=1 self.mv_run += math.fabs(self.avatar_speed*1/2) self.mv_run_diff = 1