1 Star 0 Fork 0

gzl2012/lmx_ems_sim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
coordinate2.m 396 Bytes
一键复制 编辑 原始数据 按行查看 历史
LiAnn 提交于 2018-05-10 13:47 . test OK.
function new = coordinate2(ctn,x,g)
%%
global UavHighway
%% ת
Theta = theta(ctn,g);
if Theta ~= 0
x_rotation = x' * [cos(Theta) sin(Theta); -sin(Theta) cos(Theta)];
x_rotation = x_rotation';
else
x_rotation = x;
end
%% ƽ
o_coordinate = UavHighway.group(g).Highway(ctn).ph1 - [0;0];
new = x_rotation + o_coordinate;
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gzl2012/lmx_ems_sim.git
git@gitee.com:gzl2012/lmx_ems_sim.git
gzl2012
lmx_ems_sim
lmx_ems_sim
master

搜索帮助