when {HEAD ~ the motor current values} exceed {TAIL ~ the first threshold}, sum the motor current values 
when { HEAD ~ the motor current values } exceed { TAIL ~ the first threshold } , sum the motor current values
OTH HEAD HEAD HEAD HEAD HEAD HEAD HEAD HEAD REL TAIL TAIL TAIL TAIL TAIL TAIL TAIL OTH OTH OTH OTH OTH OTH