SHARE
TWEET

Untitled

a guest Jun 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clear all;
  2.  
  3. path='C:\Users\jgauthier\Google Drive\School Classes\Thesis\backstepping\saved_data\';
  4. % read the entire sheet in
  5. data = xlsread([path 'Flight_Data_SI.csv']);
  6.  
  7. % Data is as follows
  8. % time,battery,p,q,r,ax,ay,az,omega1,omega2,omega3,omega4
  9. % x,y,z,roll,pitch,yaw,tracking,arm,takeoff,ea,
  10. % inp_thrust,inp_roll,inp_pitch,inp_yaw,timestamp
  11.  
  12. % time index
  13. t = data(:,1);
  14. battery = data(:,2)*11.2;
  15. p = data(:,3);
  16. q = data(:,4);
  17. r = data(:,5);
  18. accel_x = data(:,6);
  19. accel_y = data(:,7);
  20. accel_z = data(:,8);
  21. omega1 = data(:,9);
  22. omega2 = data(:,10);
  23. omega3 = data(:,11);
  24. omega4 = data(:,12);
  25. x = data(:,13);
  26. y = data(:,14);
  27. z = data(:,15);
  28. roll = data(:,16);
  29. pitch = data(:,17);
  30. yaw = data(:,18);
  31. arm=data(:,20);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top