Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
test_cone_gen.m
Package: SINS-MatlabImplement.rar [view]
Upload User: skyjin520
Upload Date: 2016-12-06
Package Size: 20k
Code Size: 1k
Category:
transportation applications
Development Platform:
Matlab
- clear
- close
- glvs
- afa = 1.0*glv.deg; %半锥角
- f = 1; %锥运动频率(Hz)
- th = 0.01; %采样时间
- w = 2*pi*f; %锥运动频率
- time = 10; %仿真时间长度
- len = fix(time/th); %仿真步数
- t = 0; %初始姿态四元数
- qnb0 = [cos(afa/2); sin(afa/2)*cos(w*t); sin(afa/2)*sin(w*t); 0];
- for k=1:len
- % 姿态四元数真值
- t = k*th;
- qnbk(k,:) = [cos(afa/2); sin(afa/2)*cos(w*t); sin(afa/2)*sin(w*t); 0]';
- % 角增量
- t = (k-1)*th;
- dthetak(k,:) = [-2*sin(afa)*sin(w*th/2)*sin(w*(t+th/2));
- 2*sin(afa)*sin(w*th/2)*cos(w*(t+th/2));
- -2*w*th*(sin(afa/2))^2 ]';
- end
- save test_cone_gen_1deg_1Hz.mat afa f th qnb0 qnbk dthetak
- figure
- subplot(3,1,1), plot([1:len]*th,dthetak(:,1)/glv.sec), ylabel('itDeltatheta_xrm / arcsec'); grid on
- subplot(3,1,2), plot([1:len]*th,dthetak(:,2)/glv.sec), ylabel('itDeltatheta_yrm / arcsec'); grid on
- subplot(3,1,3), plot([1:len]*th,dthetak(:,3)/glv.sec), ylabel('itDeltatheta_zrm / arcsec'); grid on
- xlabel('itt rm / s');