- Driver for UNICORECOMM UM982/UM980 GPS
Project description
Driver for UM982 / UM980
- Driver for UNICORECOMM UM882/UM980 GPS
- Support NMEA, extended NMEA Instruction Set:
PVTSLN,GNHPR,BESTNAV - Support ASSIC Instruction Set Only now
- Get as much location information as possible ( more than stantad NMEA sentence )
Language
Installation
pip install um982-driver
Usage
UM982 Configuration
It is necessary to enable the serial port output of the UM982 for PVTSLN, KSXT, GNHPR, BESTNAV statements, with the command format as
<output statement name> <output COM port> <output frequency>
Specific command examples are as follows (output to UM982's COM2, baud rate 921600, output once every 0.05 seconds):
config com2 921600
PVTSLNA com2 0.05
KSXT com2 0.05
GPHPR com2 0.05
BESTNAVA com2 0.05
Examples
from um982.assic_driver import UM982Driver
import serial
if __name__ == "__main__":
um982_driver = UM982Driver() # Instantiate the driver object
ser = serial.Serial("/dev/ttyACM0", 921600) # Open the serial port
while True:
msg = str(ser.read_all(),'utf-8') # Read UM982's output
um982_driver.decode(msg) # Decode
# Output position-related information
print(um982_driver.bestpos_lat) # Latitude
print(um982_driver.utm_x) # UTM coordinate x (positive eastward)
print(um982_driver.bestpos_latstd) # Standard deviation of latitude, can also be seen as the standard deviation of UTM coordinate x
print(um982_driver.bestpos_lon) # Longitude
print(um982_driver.utm_y) # UTM coordinate y (positive northward)
print(um982_driver.bestpos_lonstd) # Standard deviation of longitude, can also be seen as the standard deviation of UTM coordinate y
print(um982_driver.bestpos_hgt) # Elevation (positive upward)
print(um982_driver.bestpos_hgtstd) # Standard deviation of elevation measurement
# Output speed-related information
print(um982_driver.vel_east) # Speed in the UTM x direction
print(um982_driver.vel_east_std) # Standard deviation of speed in the UTM x direction
print(um982_driver.vel_north) # Speed in the UTM y direction
print(um982_driver.vel_north_std) # Standard deviation of speed in the UTM y direction
print(um982_driver.vel_up) # Vertical speed
print(um982_driver.vel_up_std) # Standard deviation of vertical speed
# Output attitude-related information
print(um982_driver.heading) # Heading
print(um982_driver.pitch) # Pitch
print(um982_driver.roll) # Roll
For ROS2 usage, you can find another DEMO.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 um982_driver-0.2.1-py3-none-any.whl.
File metadata
- Download URL: um982_driver-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f04999a91137e2ad22ea7a9073ca0b2a40200041ae59209b47b4c97051d275e
|
|
| MD5 |
df9e01bb1943a3a093d1070c567e3e19
|
|
| BLAKE2b-256 |
ae3a563eeb002af3c2fbe59ec636b369301d73013d55b88c3eb151ef962b6121
|