connect drone to QGroundControl via satellite communication
pip3 install dronekit
pip3 install pymavlink
pip3 install requests
sudo -H pip3 install dronekit-sitl
Besides, install qgroundcontrol
Add a connection with these specifications:
-UDP type
-port : 11000
-target host : 127.0.0.1:10000
select connection after saving, and hit connect.
1- first open a terminal and run
dronekit-sitl copter
this will initiate simulated vehicle, that can be connected to on tcp:127.0.0.1:5760.
Then run tests/test_local_conn_sitl.py code
python3 tests/test_local_conn_sitl.py
If everything works fine, you'll see that there is a vehicle on QGC ready to fly, you can even simulate flying it.
run tests/test_post.py
python3 tests/test_post.py
Check rock7 messages for the message.
python3 tests/test_get.py
you should see some data. Change parameters to your channel if you use a one that is different:
Thingspeak_Channel = 'https://api.thingspeak.com/channels/1564907/feeds.json?api_key=XYZ&results=1'
PS: XYZ is your secret api key.