c = h5read(fname, '/raw motor data/current');
C_A = -0.1075*(c-0.15);
out = sliding(C_A', 200);
T = h5read(fname, '/raw motor data/time');
plot(T(:,201:end), out(:,1))
hold on; plot(T(:,201:end), out(:,2))
plot(T(:,200:end), C_A(:, 200:end))
legend('sliding mean', 'sliding variance', 'current')
xlabel('time (s)')
ylabel('current (A)')
