Open realquantumcookie opened 1 year ago
Hello, we communicated this problem with our R&D colleagues. In the joystick.h file, there is no problem with the relevant comments of the code. You can refer to this example and run the code. If you encounter any problems, please feel free to feedback
https://github.com/unitreerobotics/unitree_legged_sdk/blob/go1/example/example_joystick.cpp
Hello! I'm just looking at this file
joystick.h
In line 31 it states that the struct
xRockerBtnDataStruct
takes 24 Bytes but it should take 38 bytes right? Becauseuint8_t head[2]
takes 2 bytes,xKeySwitchUnion btn
takes 16 bytes, eachfloat
takes 4 bytes so should be $2+16+4 \times 5 = 38$ Bytes? Also what isfloat L2
for in this struct?