Closed MB3hel closed 1 year ago
Deadlocks due to mval
being nan
causing this to be an infinite loop. Not sure why this becomes nan. Located in motor_control.c
in mc_set_local
Caused by check failure in cmdctrl.c
's cmdctrl_apply_saved_speed
. If the IMU data returns zero (as it does after axis configure), this is passed to mc_set_global
. The newer implementation of mc_set_global
will result in nan
s being passed to mc_set_local
in this scenario due to the invalid quaternion.
This is fixed by checking valid sensor data in cmdctrl_apply_saved_speed
before calling mc_set_global
, mc_set_sassist
, or mc_set_dhold
Describe the bug
Tested Versions v1, v2
Impacted Versions v1, v2
To Reproduce
sensordata.py
scriptsassist.py
scriptsassist.py
Expected behavior No system reset; deadlock does not occur.