-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from rodralez/develop
Master branch update
- Loading branch information
Showing
11 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/visual-data/canada-planetary-data/data/gnss_planetary_r.mat
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/visual-data/canada-planetary-data/data/gnss_planetary_sparse_r.mat
Binary file not shown.
Binary file modified
BIN
-131 Bytes
(100%)
examples/visual-data/canada-planetary-data/data/gnss_sparse_planetary.mat
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/visual-data/canada-planetary-data/data/imu_planetary.mat
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
examples/visual-data/canada-planetary-data/data/visual_planetary.mat
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,8 +41,8 @@ | |
% Thinking about accelerometers and gravity by Dave Redell | ||
% http://www.lunar.org/docs/LUNARclips/v5/v5n1/Accelerometers.html | ||
% | ||
% Version: 011 | ||
% Date: 2022/01/25 | ||
% Version: 012 | ||
% Date: 2022/08/22 | ||
% Author: Rodrigo Gonzalez <[email protected]> | ||
% URL: https://github.com/rodralez/navego | ||
|
||
|
@@ -77,18 +77,18 @@ | |
%% SIMULATION OF GRAVITY AND CORIOLIS | ||
|
||
% Gravity and Coriolis in nav-ref | ||
grav_n = -gravity(ref.lat, ref.h); % Accelerometer in Z axis senses an | ||
g_n = -gravity(ref.lat, ref.h); % Accelerometer in Z axis senses an | ||
% acceleration of 1.0 G straight up | ||
cor_n = coriolis(ref.lat, ref.vel, ref.h); | ||
|
||
% Gravity and Coriolis from nav-ref to body-ref | ||
grav_b = zeros(M); | ||
g_b = zeros(M); | ||
cor_b = zeros(M); | ||
for i = 1:N | ||
dcm_nb = reshape(ref.DCMnb_m(i,:), 3, 3); | ||
gb = dcm_nb * grav_n(i,:)'; | ||
corb = dcm_nb * cor_n(i,:)'; | ||
grav_b(i,:) = gb'; | ||
dcmnb = reshape(ref.DCMnb_m(i,:), 3, 3); | ||
gb = dcmnb * g_n(i,:)'; | ||
corb = dcmnb * cor_n(i,:)'; | ||
g_b(i,:) = gb'; | ||
cor_b(i,:) = corb'; | ||
end | ||
|
||
|
@@ -103,11 +103,11 @@ | |
% Simulation of white noise | ||
|
||
wn = randn(M); | ||
a_wn = zeros(M); | ||
acc_wn = zeros(M); | ||
|
||
for i=1:3 | ||
|
||
a_wn(:, i) = imu.a_std(i).* wn(:,i); | ||
acc_wn(:, i) = imu.a_std(i).* wn(:,i); | ||
end | ||
|
||
% ------------------------------------------------------------------------- | ||
|
@@ -119,10 +119,10 @@ | |
% ------------------------------------------------------------------------- | ||
% Simulation of rate random walk | ||
|
||
a_rrw = noise_rrw (imu.vrrw, dt, M); | ||
acc_rrw = noise_rrw (imu.vrrw, dt, M); | ||
|
||
% ------------------------------------------------------------------------- | ||
|
||
fb_sim = acc_b + cor_b + grav_b + a_wn + ab_sta + ab_dyn + a_rrw; | ||
fb_sim = acc_b + cor_b + g_b + acc_wn + ab_sta + ab_dyn + acc_rrw; | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
% imu, data structure with IMU error profile. | ||
% | ||
% OUTPUT | ||
% wb_sim, Nx3 matrix with simulated gryos in the body frame [X Y Z] | ||
% wb_sim, Nx3 matrix with simulated gyros in the body frame [X Y Z] | ||
% (rad, rad, rad). | ||
% | ||
% Copyright (C) 2014, Rodrigo Gonzalez, all rights reserved. | ||
|
@@ -38,8 +38,8 @@ | |
% Aggarwal, P. et al. MEMS-Based Integrated Navigation. Artech | ||
% House. 2010. | ||
% | ||
% Version: 009 | ||
% Date: 2022/01/25 | ||
% Version: 010 | ||
% Date: 2022/08/22 | ||
% Author: Rodrigo Gonzalez <[email protected]> | ||
% URL: https://github.com/rodralez/navego | ||
|
||
|
@@ -64,14 +64,15 @@ | |
|
||
%% SIMULATION OF TRANSPORTE AND EARTH RATES | ||
|
||
g_err_b = zeros(M); | ||
om_b = zeros(M); | ||
for i = 1:N | ||
|
||
dcmnb = reshape(ref.DCMnb_m(i,:), 3, 3); | ||
omega_ie_n = earth_rate(ref.lat(i)); | ||
omega_en_n = transport_rate(ref.lat(i), ref.vel(i,1), ref.vel(i,2), ref.h(i)); | ||
omega_in_b = dcmnb * (omega_en_n + omega_ie_n ); | ||
g_err_b(i,:) = ( omega_in_b * gyro_b (i,:)' )'; | ||
om_ie_n = skewm_inv(omega_ie_n); | ||
om_en_n = skewm_inv(omega_en_n); | ||
om_b(i,:) = (dcmnb * (om_ie_n + om_en_n))'; | ||
end | ||
|
||
%% SIMULATION OF NOISES | ||
|
@@ -85,11 +86,11 @@ | |
% Simulation of white noise | ||
|
||
wn = randn(M); | ||
g_wn = zeros(M); | ||
gyro_wn = zeros(M); | ||
|
||
for i=1:3 | ||
|
||
g_wn(:, i) = imu.g_std(i) .* wn(:,i); | ||
gyro_wn(:, i) = imu.g_std(i) .* wn(:,i); | ||
end | ||
|
||
% ------------------------------------------------------------------------- | ||
|
@@ -101,10 +102,10 @@ | |
% ------------------------------------------------------------------------- | ||
% Simulation of rate random walk | ||
|
||
g_rrw = noise_rrw (imu.arrw, dt, M); | ||
gyro_rrw = noise_rrw (imu.arrw, dt, M); | ||
|
||
% ------------------------------------------------------------------------- | ||
|
||
wb_sim = gyro_b + g_err_b + g_wn + gb_sta + gb_dyn + g_rrw; | ||
wb_sim = gyro_b + om_b + gyro_wn + gb_sta + gb_dyn + gyro_rrw; | ||
|
||
end |