⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a_add.m

📁 Introduction to Estimation and the Kalman Filter (KC-1) Extended Kalman Filter Navigation System Ex
💻 M
字号:
function a=a_add(a1,a2)
%
% A=A_ADD(A1,A2)
% Add two angles so that the result 
% always remains between +/- pi
%

a=a1+a2;

% get to within 2pi of the right answer
a=a - (2.0*pi*fix(a/(2.0*pi)));

% then leave a between +/- pi
while a>pi
  a=a-(2.0*pi);
end

while a< -pi
  a=a+(2.0*pi);
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -