Skip to content

Commit

Permalink
updated setup to better support pi
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhanner authored and AlexKlimaj committed Apr 20, 2024
1 parent 54dd88c commit 6aa4313
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,22 @@ sudo apt install -y \
curl \
jq \
snap \
snapd \
snapd

sudo pip3 install Jetson.GPIO meson pyserial pymavlink dronecan
if [ "$TARGET" = "jetson" ]; then
sudo -H pip3 install Jetson.GPIO
elif [ "$TARGET" = "pi" ]; then
sudo -H pip3 install RPi.GPIO
fi

sudo -H pip3 install meson pyserial pymavlink dronecan

########## configure environment ##########
echo "Configuring environment"
sudo systemctl stop nvgetty
sudo systemctl disable nvgetty
if [ "$TARGET" = "jetson" ]; then
sudo systemctl stop nvgetty
sudo systemctl disable nvgetty
fi
sudo apt remove modemmanager -y
sudo usermod -a -G dialout $USER
sudo groupadd -f -r gpio
Expand Down

0 comments on commit 6aa4313

Please sign in to comment.