Hello @KevinGuo
To trouble shoot your teensy problem please make sure you cloned the latest release of main (or any release of main) which we know to be stable. Then check changes you may have made iteratively to see locate the any changes that may have caused the overflow issue. For micro-controller system issues such as memory overflow you may need to try resetting the microcontroller by powering the microcontroller and double pressing the reset button.
If these suggestions do not help please let me know and include a copy of your error message so that I can better assist you.
As for your torque sensor question, the CubeMars motors will work without without the torque sensor attached. This was used in the paper to ensure that the torque applied was the torque prescribed. The torque sensor is encouraged if you intend to publish as a way to demonstrate that the device is behaving as expected. In order to run a controller without a torque sensor you will need to check for the line that sets the 'cmd' variable. The line will look something like this if it used a torque sensor:
float cmd = cmd_ff;
Ensure that you controller has no other functions that require the torque sensor but this is the only common use.
Please let me know if you have any more questions or need clarification,
Connor
We are working on a wiki page to better describe open vs closed loop torque feedback motor control:
If the PID flag is 0 on the control parameters section of the SD card for the controller you're using, the device will operate in open loop mode.

