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

Latest commit

 

History

History
21 lines (14 loc) · 681 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 681 Bytes

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())