Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

SaddlebackCollegeRobotics/turret_python_interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turret python interface

This python library provides a programmatic interface to the turret monitor firmware.

The aim is to provide a pythonic interface for interacting with this device.

Example usage

from turret_python_interface import Interface

from pathlib import Path

# Assuming a RPi is the host running this code,
# and that the builtin USART header is to be used.
serial_path = Path(r'/') / "dev" / "ttyS0"

with Interface(serial_path=serial_path, baud=115200, timeout=5) as iface:
    # NOTE: Thread-blocking call.
    print(iface.get_telemetry())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages