clear;

flat = loadData('flat_5mins_40hz');
propped = loadData('propped_5min_40hz');

flat_Az = flat.accel(:,3);
propped_Az = propped.accel(:,3);

t_secs_flat = 0:.01:(length(flat.accel)-1)/100.0;
t_secs_propped = 0:.01:(length(propped.accel)-1)/100.0;

figure;
subplot(2,1,1);
plot(t_secs_flat, flat_Az);
xlabel('Time (s)');
ylabel('Z acceleration (m/s^2)');
title('Flat IMU');
ylim([-9.8 -9.4]);
subplot(2,1,2);
plot(t_secs_propped, propped_Az);
xlabel('Time (s)');
ylabel('Z acceleration (m/s^2)');
title('Propped IMU');
ylim([-9.8 -9.4]);

mean(flat_Az)
mean(propped_Az)
