Update 'px4_setup/px4setup.sh'

This commit is contained in:
scorpio1 2023-06-14 11:17:08 -07:00
parent a61954f3d0
commit 427afafdbc
1 changed files with 4 additions and 4 deletions

View File

@ -105,17 +105,17 @@ echo $pass | sudo -S update-alternatives --set java $(update-alternatives --list
#Setting up PX4 Firmware #Setting up PX4 Firmware
if [ ! -d "${HOME}/Firmware" ]; then if [ ! -d "${HOME}/Firmware" ]; then
cd ${HOME} cd ${HOME}
git clone https://github.com/PX4/Firmware.git --recursive git clone https://github.com/PX4/PX4-Autopilot.git --recursive
else else
echo "Firmware already exists. Just pulling latest upstream...." echo "Firmware already exists. Just pulling latest upstream...."
cd ${HOME}/Firmware cd ${HOME}/Firmware
git pull git pull
fi fi
cd ${HOME}/Firmware cd ${HOME}/PX4-Autopilot
make clean && make distclean make clean && make distclean
#git checkout v1.10.1 && git submodule update --recursive #git checkout v1.10.1 && git submodule update --recursive
git checkout v1.11.2 && git submodule update --recursive #git checkout v1.11.2 && git submodule update --recursive
#git submodule update --recursive git submodule update --recursive
#cd ${HOME}/Firmware/Tools/sitl_gazebo/external/OpticalFlow && git submodule update --recursive # this is needed for PX4 v1.10.1 #cd ${HOME}/Firmware/Tools/sitl_gazebo/external/OpticalFlow && git submodule update --recursive # this is needed for PX4 v1.10.1
# cd ${HOME}/Firmware/Tools/sitl_gazebo/external/OpticalFlow/external/klt_feature_tracker && git submodule update --recursive # this is needed for PX4 v1.10.1 # cd ${HOME}/Firmware/Tools/sitl_gazebo/external/OpticalFlow/external/klt_feature_tracker && git submodule update --recursive # this is needed for PX4 v1.10.1