比例导引+弹道成型导引源程序

参考文献:

《几种增大空地导弹落角的制导方式比较》

《Strategic and tactical missile guidance》

clear
clc

%-----------导弹参数---------
V_m=260;%飞行速度 
X_m=0;  
Y_m=1000; %初始飞行高度  
theta_m=0*pi/180; %弹道倾角 

%----------目标参数---------
V_t=0; %静止目标
X_t=5000;
Y_t=0;
theta_t=0;
dtheta_t=0;
n_t=0;
A_t=0;


R=sqrt((X_m-X_t)^2+(Y_m-Y_t)^2);
q=atan((Y_t-Y_m)/(X_t-X_m));
dR=((X_m-X_t)*(V_m*cos(theta_m)-V_t*cos(theta_t))+(Y_m-Y_t)*(V_m*sin(theta_m)-V_t*sin(theta_t)))/sqrt((X_m-X_t)^2+(Y_m-Y_t)^2);
dq=((X_t-X_m)*(V_t*sin(theta_t)-V_m*sin(theta_m))-(Y_t-Y_m)*(V_t*cos(theta_t)-V_m*cos(theta_m)))/((X_m-X_t)^2+(Y_m-Y_t)^2);

n_m=-q+theta_m;

c=3;
qf=-90*pi/180;
g=9.8;

n=1;
t=0;
dt=0.01;

while (dR<0)
    if R>500
        t_go=R/abs(dR);
        Am=4*dq*abs(dR)+2*abs(dR)*(q-qf)/t_go+g*cos(theta_m); %考虑重力补偿因素的弹道成型制导律
    else
        Am=4*dq*abs(dR); %比例导引
    end
    dtheta_m=Am/V_m; %纵向通道:弹道倾角变化函数
    theta_m=theta_m+dtheta_m*dt;
    %----------------------------计算坐标----------------------------
    X_m=X_m+V_m*cos(theta_m)*dt;
    Y_m=Y_m+V_m*sin(theta_m)*dt;
    
    alpha=Am/g/(0.3*g);
    n_m=-q+theta_m; 
    R=sqrt((X_m-X_t)^2+(Y_m-Y_t)^2);
    q=atan((Y_t-Y_m)/(X_t-X_m));
    dR=((X_m-X_t)*(V_m*cos(theta_m)-V_t*cos(theta_t))+(Y_m-Y_t)*(V_m*sin(theta_m)-V_t*sin(theta_t)))/sqrt((X_m-X_t)^2+(Y_m-Y_t)^2);
    dq=((X_t-X_m)*(V_t*sin(theta_t)-V_m*sin(theta_m))-(Y_t-Y_m)*(V_t*cos(theta_t)-V_m*cos(theta_m)))/((X_m-X_t)^2+(Y_m-Y_t)^2);
    
    
    theta_m_store(n)=theta_m;  %保存弹道倾角 
    Am_store(n)=Am;   %保存纵向过载
    alpha_store(n)=alpha;%保存攻角
    P_m_store(:,n)=[X_m;Y_m]; %保存拦截弹坐标
    n=n+1;
    t=t+dt;
end
disp('脱靶量为(m):')
R
disp('飞行时间为(s):')
t


figure(1)
plot(P_m_store(1,:),P_m_store(2,:),X_t,Y_t,'r+')
hold on
xlabel('X/m')
ylabel('Y/m')

figure(2)
plot((1:n-1)*dt,Am_store/g)
hold on
xlabel('time/s')
ylabel('Acceleration/g')
title('加速度')

figure(3)
plot((1:n-1)*dt,theta_m_store*180/pi)
hold on
xlabel('time/s')
ylabel('\theta_m/°')
title('弹道倾角')

figure(4)
plot((1:n-1)*dt,alpha_store)
hold on
xlabel('time/s')
ylabel('\alpha/°')
title('攻角')



  • 18
    点赞
  • 95
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值