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