Skip to content

Commit

Permalink
Added planetary data, Canada example is modified, related to #102 #117
Browse files Browse the repository at this point in the history
  • Loading branch information
rodralez committed Mar 30, 2022
1 parent ea907d9 commit 788d0f6
Show file tree
Hide file tree
Showing 15 changed files with 184 additions and 160 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*.mat
*.csv
*.m~
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

%% IMU ERROR PROFILE

imu_data_planetary = readtable('Data/Canada/IMU/imu.txt');
load ../data/imu_planetary.mat

% IMU data structure:
% t: Ix1 time vector (seconds).
Expand Down Expand Up @@ -91,19 +91,19 @@
imu_planetary.m_psd = [m_psd,m_psd,m_psd];

% time
timestamps = table2array(imu_data_planetary(:,1));
timestamps = (timestamps - timestamps(1));
dt = mean(diff(timestamps));
imu_planetary.t = (timestamps(1):dt:timestamps(end))';
imu_planetary.freq = 1/dt;
% timestamps = table2array(imu_data_planetary(:,1));
% timestamps = (timestamps - timestamps(1));
% dt = mean(diff(timestamps));
% imu_planetary.t = (timestamps(1):dt:timestamps(end))';
% imu_planetary.freq = 1/dt;

imu_planetary.ini_align_err = [10 10 10] .* D2R; % initial attitude align errors for matrix P in Kalman filter, [roll pitch yaw] (radians)
imu_planetary.ini_align = [0 0 0] .* D2R; % Initial attitude align at t(1) (radians)

imu_planetary.fb = table2array(imu_data_planetary(:,2:4)); % acceleration measurements
imu_planetary.wb = table2array(imu_data_planetary(:,5:7)); % gyroscopic measurements
% imu_planetary.fb = table2array(imu_data_planetary(:,2:4)); % acceleration measurements
% imu_planetary.wb = table2array(imu_data_planetary(:,5:7)); % gyroscopic measurements

%% Saving

save('NaveGo-master/examples/planetary-data/canada-planetary-data/data/imu_planetary.mat','imu_planetary');
% save('NaveGo-master/examples/planetary-data/canada-planetary-data/data/imu_planetary.mat','imu_planetary');
end
Loading

0 comments on commit 788d0f6

Please sign in to comment.