InavMSPApi
Main information
To work with SMEs, you must select a transmitter. Then you need to pass the address for the connection to the transmitter as a parameter. Connect and pass the transmitter as a parameter to an instance of the MultirotorControl class.
Examples
Example Serial
from inavmspapi import MultirotorControl
from inavmspapi.transmitter import SerialTransmitter
from inavmspapi.msp_codes import MSPCodes
import time
ADDRESS = "COM6"
MSPV2_INAV_STATUS = 0x2000
serial_transmitter = SerialTransmitter(ADDRESS)
serial_transmitter.connect()
control = MultirotorControl(serial_transmitter)
time.sleep(2)
msg = control.send_RAW_msg(MSPV2_INAV_STATUS, data=[])
data_handler = control.receive_msg()
print("data_hendler: {0}".format(data_handler))
data = control.process_recv_data(data_handler)
print("data: {0}".format(data))
Example TCP
from inavmspapi import MultirotorControl
from inavmspapi.transmitter import TCPTransmitter
from inavmspapi.msp_codes import MSPCodes
import time
HOST = '127.0.0.1'
PORT = 5760
ADDRESS = (HOST,PORT)
MSPV2_INAV_STATUS = 0x2000
tcp_transmitter = TCPTransmitter(ADDRESS)
tcp_transmitter.connect()
control = MultirotorControl(tcp_transmitter)
time.sleep(2)
msg = control.send_RAW_msg(MSPV2_INAV_STATUS, data=[])
data_handler = control.receive_msg()
print("data_hendler: {0}".format(data_handler))
data = control.process_recv_data(data_handler)
print("data: {0}".format(data))
Metadata
Release files for inavmspapi 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inavmspapi-1.1.0.tar.gz | 23.8 kB | Without provenance | Details for inavmspapi-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inavmspapi-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for inavmspapi-1.1.0-py3-none-any.whl |
Total release size: 47.5 kB
Security for inavmspapi 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.