Git clone default PX4-Autopilot
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
- Copy s500 folder to ./PX4-Autopilot/Tools/sitl_gazebo/models
- Move emptyworld.world to ./PX4-Autopilot/Tools/sitl_gazebo/worlds
- Replace the sitl_target.cmake file at ./PX4-Autopilot/platforms/posix/cmake
- In ./PX4-Autopilot/ROMFS/px4fmu_common/init.d-posix/airframes; Move 1001_s500 file & replace CMakeLists.txt
- Replace the sitl_run.sh file at ./PX4-Autopilot/Tools
Run PX4-Autopilot SITL & Gazebo
cd ./PX4-Autopilot
make px4_sitl gazebo_s500__emptyworld
Add current user accout to dialout group and remove modemmanager
sudo usermod -a -G dialout $USER
sudo apt-get remove modemmanager
Download QGroundControl.AppImage
wget https://s3-us-west-2.amazonaws.com/qgroundcontrol/latest/QGroundControl.AppImage
Change permissions and run
chmod +x ./QGroundControl.AppImage
./QGroundControl.AppImage