Skip to content

connect rock7 web service to your application via thingspeak

License

Notifications You must be signed in to change notification settings

UcefMountacer/Drone_Sat_Comm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HEIMDALL-PROJECT / GS part

connect drone to QGroundControl via satellite communication

setting up sat communication on ground station (Running Ubuntu)

installing packages

pip3 install dronekit 
pip3 install pymavlink
pip3 install requests
sudo -H pip3 install dronekit-sitl

Besides, install qgroundcontrol

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.

Run a test

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.

POST to rockblock

run tests/test_post.py

python3 tests/test_post.py

Check rock7 messages for the message.

GET from gmail

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.

About

connect rock7 web service to your application via thingspeak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages