Delibot-Controller-RPi-Library
Raspberry Pi Python client for the Delibot STM32 motor controller's UART protocol (USART2, 115200 8N1, App/Src/rpi_link.c / host_commands.c in Delibot-Controller).
Install
pip install delibot
or from source:
pip install -e .
Usage
from delibot import DelibotController, Param
with DelibotController("/dev/ttyAMA0") as robot:
robot.set_velocity(linear_mm_s=300, angular_mrad_s=0)
telemetry = robot.telemetry
if telemetry is not None:
print(telemetry.yaw_deg, telemetry.left_wheel_mm_s, telemetry.motors_on)
track_width = robot.get_param(Param.WHEEL_TRACK_WIDTH_MM)
robot.set_param(Param.WHEEL_TRACK_WIDTH_MM, 210.0)
robot.save_params()
ticks = robot.get_encoder_ticks()
robot.zero_encoders()
robot.stop()
set_velocity is kept alive internally by a background heartbeat thread, so the STM32's 500 ms deadman watchdog (RPI_LINK_TIMEOUT_MS) never trips between calls — call it once per desired speed change, not on every control-loop tick.
telemetry is updated asynchronously from a background reader thread at the firmware's 50 Hz push rate; pass on_telemetry= / on_debug= callbacks to DelibotController to react to updates and firmware debug prints as they arrive instead of polling the property.
Protocol
- Frame:
SOF(0xFF) LEN CMD PAYLOAD... CRC,CRC = CMD ^ PAYLOAD[0] ^ ... ^ PAYLOAD[n-1]. - No sequence numbers or NACKs on the wire — request/response calls (
get_param,get_encoder_ticks,get_crsf_channels,ping) apply a client-side timeout (DelibotTimeoutError) instead. - See
src/delibot/protocol.pyfor the full command and parameter ID tables.
Metadata
Release files for delibot 0.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 | |
|---|---|---|---|---|
| delibot-0.1.0.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| delibot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / delibot-0.1.0.tar.gz
| Download URL | delibot-0.1.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
755708ce701751d42ddfeca7cb998fd97342b68cc97a77d2233f19e544f41775
|
|
BLAKE2b-256 checksum How to use checksums |
c6ee0c89787bcf61e9d0eac3fb05e9cb09400e6e158de6295db2d52e303048a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Release files / delibot-0.1.0-py3-none-any.whl
| Download URL | delibot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ae39d72c408f2358d405ebf14eeec604de7b338030d8a81164fa624de35d2b2
|
|
BLAKE2b-256 checksum How to use checksums |
374934bec9cf9d447cac5a21231d19928d50eb0e1ab70fea8eb9b6c24c9ee40d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Security for delibot 0.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.