/PX4-Python-SITL-2021

This Documentation will guide you to program a drone runnning PX4 firmaware using the Python mavsdk module, with the added option of 3d smulation using Gazebo11.

Primary LanguagePythonMIT LicenseMIT

PX4-Python-SITL

This Documentation will guide you to program a drone runnning PX4 firmaware using the Python mavsdk module, with the added option of 3d smulation using Gazebo11

Before following this Steps install PX4-Autopilot > for Video tutorial

F-lab

VIDEO TUTORIAL

STEP 1 INSTALL PYCHARM

You can download the .tar file from the official website Pycharm

Follow the following steps to extract and run Pycharm


cd ~/Downloads

tar -xzf pycharm-community-2020.3.3.tar.gz //NOTE: Folder name will change according to the current version


cd pycharm-community-2020.3.3 //NOTE: Folder name will change according to the current version

cd bin

chmod u+x pycharm.sh

sh pycharm.sh

Installation window will open, complete it and move to the next step

OR

If you have Pycharm already installed

cd pycharm-community-2020.3.3 //NOTE: Folder name will change according to the current version

cd bin

./pycharm.sh

STEP 2: Create a new Project

We will do a simple take off and land using python ! Start by cloning this repository in your project folder using pycharm terminal

git clone https://github.com/F-LAB-Systems/PX4-Python-SITL-2021.git

STEP 3: Open PX4-Autopilot & Gazebo

In new Terminal open PX4-Autopilot & Gazebo

cd ~

cd PX4-Autopilot

make px4_sitl gazebo //QuadCopter

STEP 4: Open QGroundControl

In new terminal open QGroundControl

cd ~

cd Documents //If AppImage is in documents

./QGroundControl.AppImage