unitree_crc
unitree_crc copied to clipboard
Proof of Concepts to compute CRCs for Go1, Go2 and G1 motors.
Unitree CRC for Go1/Go2/G1 motors
Based off captured frames on the rs-485 bus of Go1/Go2/G1 motors.
-
Copy .cpp files from the
/srcfolder into the sdk/examplefolder -
add to the CMakeList.txt:
add_executable(aatb_go1_crc example/aatb_go1_crc.cpp)
target_link_libraries(aatb_go1_crc ${EXTRA_LIBS})
add_executable(aatb_go2_crc example/aatb_go2_crc.cpp)
target_link_libraries(aatb_go2_crc ${EXTRA_LIBS})
add_executable(aatb_g1_crc example/aatb_g1_crc.cpp)
target_link_libraries(aatb_g1_crc ${EXTRA_LIBS})
- compile as usual:
mkdir build
cd build
cmake ..
make
- run either
./aatb_go1_crcor./aatb_go2_crcor./aatb_g1_crcfrom the/buildfolder.
Hats off to imcnanie for the Go1 motor dumps, Go2 dumps by yours truly, G1 dumps by rghilduta.