资源简介
ekf matlab 关于efk仿真,matlab源代码
代码片段和文件信息
function EKF4()
% EKF static base alignment
% ZMH
clear all
L = 34*pi/180;
wie = 7.2921158e-5;
g = 9.8;
sl = sin(L);
cl = cos(L);
gyrobias = 0.02*pi/180/3600;%陀螺仪的偏执
accbias = 1e-4*9.8;%加速度的偏执
gyrostoc = 0.01*pi/180/3600;
accstoc= 0.5e-4*9.8/2;
P = diag([0.1^20.1^2(1*pi/180)^2(1*pi/180)^2(1*pi/180)^2]);
sQ = diag([accstocaccstocgyrostocgyrostocgyrostoc]);
Q = diag([accstoc^2accstoc^2gyrostoc^2gyrostoc^2gyrostoc^2]);
sR = diag([0.10.1]);
R = diag([0.010.01]);
H = [diag([11])zeros(23)];
xest = [0.10.1(1*pi/180)(1*pi/180)(1*pi/180)]‘; %estimate
x = zeros(51); dxpre = zeros(51);dxest = zeros(51);
xobs = zeros(51);
dxobs = multivariate_gauss(x Q 1);
z = H*dxobs;
dzobs = multivariate_gauss(z R 1);
NN = 1000;
for i=1:NN
F =eye(5) + numerical_Jacobian(xobs @predict_model);
dxpre = F*dxest;
P = F*P*F‘ + Q;
% update
[dxestP] = update(dxpre P dzobs R H 3); % the end parameter specifies which KF function to use.
xest = xobs + dxest;
dxobs = F*dxobs;
dxobs = multivariate_gauss(dxobs Q 1);
xobs = xobs + predict_model(xobs);
dz = observe_model(dxobsH);
dzobs = multivariate_gauss(dz R 1);
% plots
xout(:i) = xest;
Pout(1i) = sqrt(P(33));
Pout(2i) = sqrt(P(44));
Pout(3i) = sqrt(P(55));
end
i=1:NN;
subplot(311)
plot(ixout(1i)‘r‘ixout(2i)‘b‘);
hold on
subplot(312)
plot(ixout(3i)‘r‘ixout(4i)‘b‘ixout(5i)‘g‘)
hold on
subplot(313)
plot(iPout(1i)‘r‘iPout(2i)‘b‘iPout(3i)‘g‘)
- 上一篇:基于小波变换多尺度边缘检测
- 下一篇:对整个DS-CDMA系统进行仿真MATLAB
相关资源
- EKF扩展卡尔曼滤波车身状态估计
- ekf的滤波程序,以及在组合导航中的
- PX4 EKF MATLAB代码
- matlab模拟EKF滤波器
- EKF/UKF工具箱
-
Simuli
nk EKF vehicle model - EKFUKFmatlab程序比较
- 卡尔曼滤波EKF UKF PF对比matlab源程序
- 基于卡尔曼滤波的soc估计程序
- EKF估计SOC
- 矩阵变换器永磁同步电机矢量控制
- 滑模控制与扩展卡尔曼控制结合(S
- EKF永磁同步电机矢量控制
-
EKF估计soc的simuli
nk程序 - EKF算法扩展卡尔曼滤波
- matlab估算锂电池soc
- PF-EKF 粒子滤波和扩展卡尔曼滤波的对
- EKF 扩展卡尔曼滤波的基础代码
- AEKF
- GNSS_INS GPS_INS松组合程序
- (EKF)-data-fusion 扩展卡尔曼滤波(
- Inertial-Navigation-System-program 严恭敏老师
- Particle-Filter-with-comments 有注释的粒子
- documentation 详细讲解了卡尔曼滤波器及
- EKFUKFCKkk EKF、UKF、CKF三种滤波算法的比
- EKF程序,matla
- EKF UKF CKF
- 非线性卡尔曼滤波
- ekf滤波程序 用于 位置 解算看评论,
- EKF,UKF和PF粒子滤波的性能
评论
共有 条评论