1 Star 1 Fork 1

mmmmachine/beng_thesis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
r_n_addnoise.m 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kacper Piotrowski 提交于 2016-11-17 22:38 . Basic Kalman filter added
function [ r_n_gps ] = r_n_addnoise( r_n_ref, r_gps_noise )
%UNTITLED This function takes an ideal trajectory and adds noise to it
% warning: this noise is actually random (no seed)
phi=r_n_ref(1);
h=r_n_ref(3);
a= 6378137.0; %semi-major axis of the reference ellipsoid
f=1/298.257223563; %flattening
e=sqrt(2*f-f^2); %linear eccentricity of the reference ellipsoid
M=a*(1-e^2)/(1-e^2*sin(phi)^2)^(3/2);
N=a/sqrt(1-e^2*sin(phi)^2);
noise=[1/(M+h) 0 0 ; 0 1/((N+h)*cos(phi)) 0; 0 0 1]*...
wgn(3,1,r_gps_noise^2,'linear');
r_n_gps=r_n_ref+noise;
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/mmmmachine/beng_thesis.git
git@gitee.com:mmmmachine/beng_thesis.git
mmmmachine
beng_thesis
beng_thesis
master

搜索帮助