I couldn’t understand what the threshold parameter in the sphero robot project is. Could you please explain it?
threshold is the maximum acceleration you expect the robot to have under normal circumstances, on any of the axes. If it’s more than that, a crash has possibly happened on that axis (in the opposite direction).
It’s just a part of someone’s crash detection logic - you can design yours .