Description: Set up a state machine using event-driven programming to make udacidrone fly autonomously in a square shape. The pupose of this project is to get familiar with sending commands and receiving incoming data from the drone. The required task is to command the drone to fly a 10 meter box at a 3 meter altitude. Since communication with the drone is done using MAVLink, the code can potentially be used to control an PX4 quadcopter autopilot with minimal modification.
Code: backyard_flyer.py
Result:
- Download and install miniconda3.
- Clone the repository and then navigate to
FCND-Term1-Starter-Kit
submodule:
git clone --recursive https://github.com/pyadmell/flying-car-udacity.git
cd ext/udacity/FCND-Term1-Starter-Kit
- Create the miniconda environment:
conda env create -f environment.yml
- Verify the fcnd environment:
conda info --envs
- Clean up downloaded packages:
conda clean -tp
- Activate
fcnd
conda environment:
source activate fcnd