threshold0 = 3.0;  % detection threshold for delta between encoder and stringpot, mm
threshold1 = 0.04;  % threshold for electrical - mechanical speed delta, mm/s
threshold2 = 0.04;  % threshold for current delta, A
threshold3 = 0.02;  % threshold for mechanical speed delta, mm/s

