| Crates.io | turret |
| lib.rs | turret |
| version | 0.1.0 |
| created_at | 2025-09-12 20:28:19.8094+00 |
| updated_at | 2025-09-12 20:28:19.8094+00 |
| description | Command-line tool for controlling STorM32 turret controllers via RC Commands protocol |
| homepage | https://github.com/luofang34/turret |
| repository | https://github.com/luofang34/turret |
| max_upload_size | |
| id | 1836664 |
| size | 101,018 |
Command-line tool for STorM32 gimbal controllers. Uses the RC Commands protocol.
Download the latest release from Releases for your platform.
# Install Rust (if needed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Clone and build
git clone https://github.com/luofang34/turret
cd turret
cargo build --release
# Basic commands (auto-detects device)
turret status
turret set 10.0 0.0 -15.0
turret set -10,0,15 # comma-separated
turret set 1.5:-2.3:0 # colon-separated
turret center
turret version
# Manual device specification
turret --device /dev/ttyUSB0 status
# Verbose output for debugging
turret -v status # info
turret -vv status # debug
turret -vvv status # trace (shows raw protocol)
# Individual axis control
turret pitch 1500 # RC values 700-2300, 0 to recenter
turret roll 0 # recenter roll
# Pan mode and standby
turret pan-mode 3 # PANPANPAN mode
turret standby true
Uses STorM32 RC Commands protocol over serial (115200 baud).
Message format: [0xFA][len][cmd][payload][crc16]
Supports: version query, angle setting, status reading, pan modes.
Auto-detects STM32 Virtual COM Port (VID:0x0483, PID:0x5740).
Falls back to common patterns: /dev/ttyACM*, /dev/ttyUSB*, COM*
dialout group or use sudo