1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-25 23:51:35 +00:00

Merge branch '3-store-data-in-memory'

This commit is contained in:
2021-09-17 13:05:11 -07:00
6 changed files with 145 additions and 118 deletions

View File

@@ -3,34 +3,29 @@ clear all; close all; clc;
% Read data and transfer to variables
T = readmatrix('../simOut.csv');
t = T(:, 1);
x = T(:, 2);
y = T(:, 3);
z = T(:, 4);
vx = T(:, 5);
vy = T(:, 6);
vz = T(:, 7);
ax = T(:, 8);
ay = T(:, 9);
az = T(:, 10);
yaw = T(:, 11);
pitch = T(:, 12);
roll = T(:, 13);
yawdot = T(:, 14);
pitchdot = T(:, 15);
rolldot = T(:, 16);
yawddot = T(:, 17);
pitchddot = T(:, 18);
rollddot = T(:, 19);
I11 = T(:, 20);
I22 = T(:, 21);
I33 = T(:, 22);
I11dot = T(:, 23);
I22dot = T(:, 24);
I33dot = T(:, 25);
Servo1 = T(:, 26);
Servo2 = T(:, 27);
m = T(:, 28);
thrust = T(:, 29);
Servo1 = T(:, 17);
Servo2 = T(:, 18);
% Acceleration
subplot(3, 1, 1)