Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
bindings/cpp/examples/README.mdC++ Example Programs
Channel Compatibility (PCAN + slcan + CAN-FD + Damiao Serial Bridge)
- Linux SocketCAN uses interface names directly:
can0,can1,slcan0. - For USB-serial CAN adapters, bring up
slcan0first:sudo slcand -o -c -s8 /dev/ttyUSB0 slcan0 && sudo ip link set slcan0 up. - Hexfellow examples require CAN-FD path (
Controller::from_socketcanfd(...)/ CLI--transport socketcanfd). - Damiao-only serial bridge transport is also available in CLI (
--transport dm-serial --serial-port /dev/ttyACM0 --serial-baud 921600). - Full Damiao serial-bridge interface list and command patterns are documented in
motor_cli/README.md(section3.6inmotor_cli/README.zh-CN.md). - On Linux SocketCAN, do not append bitrate in
--channel(for examplecan0@1000000is invalid). - On Windows (PCAN backend),
can0/can1map toPCAN_USBBUS1/2; optional@bitratesuffix is supported.
Damiao Set-Zero Sequence Note
- Recommended order:
disable -> set_zero_position -> enable -> ensure_mode -> control. set_zero_positionis guarded in core and requires disabled state.
cpp_wrapper_demo.cpp: Damiao MIT looprobstride_wrapper_demo.cpp: RobStride ping / read-param / mit / vel demohexfellow_canfd_demo.cpp: Hexfellow CAN-FD demo (mit/pos-velonly)full_modes_demo.cpp: Damiao full-mode controlpid_register_tune_demo.cpp: Damiao tuningscan_ids_demo.cpp: Damiao scan (legacy helper)pos_ctrl_demo.cpp: Damiao position targetpos_repl_demo.cpp: Damiao interactive position console