4 Star 22 Fork 10

肖昆/Falcon9-Soft-Landing-Simulation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
guidance.m 283 Bytes
一键复制 编辑 原始数据 按行查看 历史
肖昆 提交于 2020-07-15 09:36 +08:00 . 完成
function F = guidance(target_x)
step = 1;
Kx = 0.5;
Kv = 0.8;
global N2 x u z g
while step<N2
m = exp(z(step));
thrust = Kx*(target_x(1:3)-x(step+1,1:3))+Kv*(target_x(4:6)-x(step+1,4:6))+u(:,step)*m;
F_tmp = thrust + m*g;
F(3) = F_tmp(1);
F(1:2) = F_tmp(2:3);
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/robin_shaun/Falcon9-Soft-Landing-Simulation.git
git@gitee.com:robin_shaun/Falcon9-Soft-Landing-Simulation.git
robin_shaun
Falcon9-Soft-Landing-Simulation
Falcon9-Soft-Landing-Simulation
master

搜索帮助