资源简介
matlab仿真程序,用于计算INS/GPS模拟和仿真。
代码片段和文件信息
%
% aided_ins_15_state.m
%
% Inertial Navigation System with 15-state Kalman filter using
% position-aiding
%
% This program performs the integration Kalman filtering and
% thus takes input from programs which have already generated
% the INS data. See the LOAD command below.
%
% The state vector is:
% x1 = delta x position
% x2 = delta y position
% x3 = delta z position
% x4 = delta x velocity
% x5 = delta y velocity
% x6 = delta z velocity
% x7 = psi-angle x component
% x8 = psi-angle y component
% x9 = psi-angle z component
% x10 = body-x accel bias
% x11 = body-y accel bias
% x12 = body-z accel bias
% x13 = body-x gyro bias
% x14 = body-y gyro bias
% x15 = body-z gyro bias
%
% Note: the position and velocity errors are expressed in the
% so-called local-level frame or simply L (or l) frame.
% In the L-frame: x=east; y=north; z=up
%
% August 2005
% Copyright (c) 2005 by GPSoft LLC
% All Rights Reserved.
clear all
close all
fly_over_rms = 3; % RMS error (in meters) of the external 2-D position
% % fix (in each dimension); also known as a fly-over fix
load dyn_flt_ins_dat % output from the program DYN_FLIGHT_INS.M
randn(‘state‘0)
C = [0 1 0; 1 0 0; 0 0 -1]; % conversion between NED and ENU
H = zeros(215); H(11) = 1; H(22) = 1;
% % The measurement vector z consists of
% % an x and y position difference only.
% % Since we are working in the L frame
% % this corresponds to east and north
% % position difference (since alpha=0).
Peast_pos = fly_over_rms^2; Pnorth_pos = fly_over_rms^2; Pup_pos = 0;
Peast_vel = 2^2; Pnorth_vel = 2^2; Pup_vel = 0;
Ppsi_x = 0.0001^2; Ppsi_y = 0.0001^2; Ppsi_z = 0.0001^2;
Pacc_x = (100*9.81e-6)^2; Pacc_y = (100*9.81e-6)^2; Pacc_z = (100*9.81e-6)^2;
Pgyr_x = (0.05)^2; Pgyr_y = (0.05)^2; Pgyr_z = (0.05)^2;
P_pre = zeros(1515);
P_pre(11)=Peast_pos; P_pre(22)=Pnorth_pos; P_pre(33)=Pup_pos;
P_pre(44)=Peast_vel; P_pre(55)=Pnorth_vel; P_pre(66)=Pup_vel;
P_pre(77)=Ppsi_x; P_pre(88)=Ppsi_y; P_pre(99)=Ppsi_z;
P_pre(1010)=Pacc_x; P_pre(1111)=Pacc_y; P_pre(1212)=Pacc_z;
P_pre(1313)=Pgyr_x; P_pre(1414)=Pgyr_y; P_pre(1515)=Pgyr_z;
P_pre_KF = P_pre; % initial prediction error covariance matrix
R = [fly_over_rms^2 0; 0 fly_over_rms^2]; % measurement error covariance matrix
sigma_acc = 0.3*9.81e-6;
sigma_gyr = 1e-9;
G = zeros(1515);
G(1010)=sigma_acc; G(1111)=sigma_acc; G(1212)=sigma_acc;
G(1313)=sigma_gyr; G(1414)=sigma_gyr; G(1515)=sigma_gyr;
W = zeros(1515);
W(1010)=1; W(1111)=1; W(1212)=1;
W(1313)=1; W(1414)=1; W(1515)=1;
tau_accel = 100000;
tau_gyro = 100000;
update = 0; count = 0;
X_pre = zeros(151);
est_lat_KF(1) = lat_pr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10607 2005-09-29 13:00 aided_ins_15_state.m
----------- --------- ---------- ----- ----
10825 2
- 上一篇:8PSK理论误码率及误比特率
- 下一篇:二自由度车辆动力学simuli
nk模型
相关资源
- 8PSK理论误码率及误比特率
- 基于MATLAB GUI 界面设计解线性方程组
- 最小二乘影像匹配程序matlab
- 高光谱异常探测算法RXD的matlab实现
- 一维非稳态导热热传导Matlab程序
- copula程序matlab
- 基于背景差分法和卡尔曼滤波器的追
- MATLAB编写的学习隐马尔科夫模型的程
- 模拟退火算法matlab实现
- 风电场风速两参数weibull(威布尔)分
- 混合差分遗传进化算法代码(matlab)
- 三边测量定位MATLAB源码
- 支持向量机SVM和核函数的matlab程序集
- 神经网络用于模式识别及MATLAB源代码
- 基于matlab和神经网络的手写字母识别
- 差分进化算法的Matlab代码,可运行
- OFDM matlab程序
- 维纳滤波器
- matlab制作梳状滤波器
- MATLAB高通滤波器程序
- 用matlab拟合圆 基于最小二乘法 详细推
- 使用matlab识别出图像中的圆形,计算
- matlab支持向量机源代码
- 用matlab神经网络实现非线性识别
-
基于simuli
nk的光伏模型搭建供大家参 - matlab各种功率谱画法及比较
- 光伏发电系统的MATLAB仿真
- 光伏发电的MATLAB并网仿真
- 计算方法上机实验报告-matlab
- FCM的MATLAB实现
评论
共有 条评论