#protocols #robotics #can #no-std #robomaster

no-std robomaster-s1-proto

Rust implementation of the RoboMaster S1 CAN protocol

5 releases

0.2.2 Aug 14, 2024
0.2.1 Aug 9, 2024
0.2.0 Aug 9, 2024
0.1.1 Aug 8, 2024
0.1.0 Aug 7, 2024

#24 in #can

Download history 297/week @ 2024-08-05 129/week @ 2024-08-12 18/week @ 2024-09-16 29/week @ 2024-09-30

207 downloads per month

MIT/Apache

70KB
1.5K SLoC

robomaster-s1-proto

robomaster-s1-proto is a no_std Rust library for the DJI RoboMaster S1 robot.

We provide safe interfaces for the S1's CAN bus protocol.

Features include:

  • Chassis/Blaster/Gimbal control
  • DUSS and DUSS VBUS (Virtual Bus) Pub/Sub interfaces
  • Protocol parser for the S1's CAN bus messages

Tools

We include a decoder tool for parsing a CAN dump with the Linux can-utils candump tool. To use it, run

cargo run --example rm-can-decode data.log

LICENSE

MIT OR Apache-2.0

Dependencies

~0.4–0.9MB
~18K SLoC