git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule update --init --recursive
docker build . -t ardupilot
docker run --rm -it -v `pwd`:/ardupilot ardupilot:latest bash
sim_vehicle.py -v copter --console --map -w
install dronekit
pip install dronekit-sitl
pip install mavproxy
Start the Dronekit SITL simulator:
dronekit-sitl copter --home=35.98,-9.5.87,0,180
mavproxy.py --master tcp:127.0.0.1:5760 --out udp:127.0.0.1:14551 --out udp:10.55.222.120:14550
Execute the Python script to connect to Dronekit: Note: Ensure Python 3.9 is used for running the script, as later versions might be incompatible with Dronekit.
python SuT/ardu/dronekit_mission.py
ArduPilot logs are in .tlog format, you can use mavlogdump.py to convert it to human readable format