A simple program for controlling a virtual copter.
The program takes off and directs the copter from point A to point B, after arriving at point B the copter turns to an azimuth (yaw) of 350 degrees and returns to point A. The flight altitude is 100 meters. Flight speed 20 km/h.
- Clone this repository
- Create venv: python -m venv venv
- Activate venv: source venv/bin/activate
- Install requirements: pip install -r requirements.txt
- Crate ARDUPILOT SITL Simulator (use this link: https://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html)
- Launch SITL Simulator use this command:
- cd ~/ardupilot/ArduCopter
- ../Tools/autotest/sim_vehicle.py --console --map --out=udpbcast:127.0.0.1:14550 --location=50.450739,30.461242
- Run: python simple_drone.py
https://www.loom.com/share/a981358827ad4a1c86d2edfe3574c568?sid=5ee99dc1-d251-4f4d-87ad-c5e66382f5eb