Based off captured frames on the rs-485 bus of Go1/Go2/G1 motors.
-
Copy .cpp files from the
/src
folder into the sdk/example
folder -
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_crc
or./aatb_go2_crc
or./aatb_g1_crc
from the/build
folder.
Hats off to imcnanie for the Go1 motor dumps, Go2 dumps by yours truly, G1 dumps by rghilduta.