kidronekit
Premium extended version of dronekit
Install
pip install kidronekit
Getting Started
How to control get drone telemetrys via Mavlink with kidronekit:
from kidronekit import connect, VehicleMode
connection_string = "tcp:192.168.0.120:5763"
# Connect to the Vehicle.
print("Connecting to vehicle on: %s" % (connection_string,))
vehicle = connect(connection_string, wait_ready=True)
# Get some vehicle attributes (state)
print("====================================================")
print(" GPS Status: %s" % vehicle.gps_0)
print(" Lat, Lon, Alt: %s" % vehicle.location.global_relative_frame.lat, vehicle.location.global_relative_frame.lon, vehicle.location.global_relative_frame.alt)
print(" Attitude: %s" % vehicle.attitude)
print(" Groundspeed: %s" % vehicle.groundspeed) # settable
print(" Airspeed: %s" % vehicle.airspeed) # settable
print(" Verticalspeed: %s" % vehicle.alt)
print(" Alt (MSL): %s" % vehicle.throttle)
print(" Throttle: %s" % vehicle.climb)
print(" Heading: %s" % vehicle.heading)
print(" Battery: %s" % vehicle.battery)
print(" Is Armable?: %s" % vehicle.is_armable)
print(" System status: %s" % vehicle.system_status.state)
print(" Mode: %s" % vehicle.mode.name) # settable
print("====================================================")
Output:
====================================================
GPS Status: GPSInfo:fix=6,num_sat=10
Lat, Lon, Alt: 10.3939486 106.8843985 5.004
Attitude: Attitude:pitch=-0.00046380647108890116,yaw=-1.9323097467422485,roll=-0.002339589409530163
Groundspeed: 0.020496351644396782
Airspeed: 0.0010000000474974513
Verticalspeed: 17.920000076293945
Alt (MSL): 0.020496351644396782
Throttle: -0.005825158208608627
Heading: 249
Battery: Battery:voltage=12.587,current=28.16,level=0
Is Armable?: True
System status: ACTIVE
Mode: GUIDED
====================================================
License
Copyright (c) 3D Robotics and Kirinslab. All rights reserved. Licensed under the Apache 2.0 License license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kidronekit-1.0.0.tar.gz
(39.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kidronekit-1.0.0.tar.gz.
File metadata
- Download URL: kidronekit-1.0.0.tar.gz
- Upload date:
- Size: 39.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
724e05a29bb399833100e9c945212000a2f8ff7d174cd3b631718e1c4fce31c4
|
|
| MD5 |
4e2e5bb0e1380fb29da441e9b7b6d04e
|
|
| BLAKE2b-256 |
078efecac61f4432a9eb26be4b42d86cb5295bcc16c5562ed2a27909623d6171
|
File details
Details for the file kidronekit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kidronekit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 39.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f499a86f6b168a913e58e2b1cc26a75c81b8635ef1cd6c82e07b635cd1bd42bf
|
|
| MD5 |
bce652d09007f03977fe9b22e5ba1812
|
|
| BLAKE2b-256 |
a847750a8e30dc78ca2be3835a4d53a832014a47eee5e8ae3089dbb0ba569127
|