Measuring current draw from servo
just for giggles on a spreadsheet
a simple software filter but ADC samples synchronously to 10x servo rate. (500Hz)  in order to demonstrate limitations of simple low pass filters on delay and ripple.
Rolling averages were done for different # of samples 1,3,5,7,7W (centre weighted) , 11, 19, 39  for less than 80 samples of servo pulses
asynchronous sampling would have aliasing errors.
Note simple rolling average adds group delay or latency to the peak current.  But an optimal "Nyquist" filter would not. (as much)