A system comprising: a driver circuit; a sense resistor coupled between the driver circuit and a variable differential transformer VDT; and a field programmable gate array, FPGA, configured to: sample a set of current values from the sense resistor; determine an overcurrent event in the driver circuit based on the set of current values, wherein determining the overcurrent event in the driver circuit based on the set of current values comprises: trimming each current value in the set of current values to create a trimmed current value for each current value in the set of current values; calculating a square value for each trimmed current value in the set of current values and storing the square value for each trimmed current value in a buffer; calculating a mean for the square values in the buffer; determining the overcurrent event based on the mean being outside a predefined range of means; and disable the driver circuit based on the determination of the overcurrent event. a driver circuit; a sense resistor coupled between the driver circuit and a variable differential transformer VDT; and a field programmable gate array, FPGA, configured to: sample a set of current values from the sense resistor; determine an overcurrent event in the driver circuit based on the set of current values, wherein determining the overcurrent event in the driver circuit based on the set of current values comprises: trimming each current value in the set of current values to create a trimmed current value for each current value in the set of current values; calculating a square value for each trimmed current value in the set of current values and storing the square value for each trimmed current value in a buffer; calculating a mean for the square values in the buffer; determining the overcurrent event based on the mean being outside a predefined range of means; and disable the driver circuit based on the determination of the overcurrent event. sample a set of current values from the sense resistor; determine an overcurrent event in the driver circuit based on the set of current values, wherein determining the overcurrent event in the driver circuit based on the set of current values comprises: trimming each current value in the set of current values to create a trimmed current value for each current value in the set of current values; calculating a square value for each trimmed current value in the set of current values and storing the square value for each trimmed current value in a buffer; calculating a mean for the square values in the buffer; determining the overcurrent event based on the mean being outside a predefined range of means; and disable the driver circuit based on the determination of the overcurrent event. trimming each current value in the set of current values to create a trimmed current value for each current value in the set of current values; calculating a square value for each trimmed current value in the set of current values and storing the square value for each trimmed current value in a buffer; calculating a mean for the square values in the buffer; determining the overcurrent event based on the mean being outside a predefined range of means; and disable the driver circuit based on the determination of the overcurrent event.