User manual

U-See User Manual - Settings Menu
Appendix A
Appendix A
Matlab script for data analysis
Matlab script for data analysis
This script will load data file and present some interesting figures.
%% -------------- Start of file ------------
clear all
data=load('Y:\Path_to_Data\datafile.txt');
Pitch = data (:,1);
Roll = data (:,2);
Yaw = data (:,3);
CommandedPitch = data(:,4) ;
CommandedRoll = data (:,5);
CommandedYaw = data (:,6);
Battery1 = data (:,7);
Battery2 = data (:,8);
Battery3 = data (:,9);
Battery4 = data (:,10);
Altitude = data (:,11);
Latitude = data (:,12);
Longitude = data (:,13);
IAS = data (:,14);
GroundSpeed = data (:,15);
CommandedIAS = data (:,16);
CommandedAltitude = data (:,17);
VNorth = data (:,18);
VEast = data (:, 19);
VDown = data (:,20);
close all
figure
hold on;
grid on;
plot (Pitch,'r');
plot (Roll,'g');
title ('Pitch & Roll');
legend ('Pitch [degrees]','Roll [degrees]');
figure
hold on;
grid on;
plot (Pitch,'r');
plot (CommandedPitch,'b');
title ('Pitch command loop');
legend ('Pitch','Commanded Pitch');
figure
hold on;
grid on;
plot (Roll,'r');
plot (CommandedRoll,'b');
title ('Roll command loop');
legend ('Roll','Commanded Roll');
figure
Document Version 1.25 73