📄 init_motes.m
字号:
clear functionsrand('state',0);rand;global xPos yPos xPos_init yPos_init xBall yBall tellArrive xPos_attac yPos_attacglobal takePass noticeBall inPlace Kx Ky xPos_defense yPos_defense konstitfelglobal xPos_middle yPos_middle statefor i=1:10 tellArrive(i) = 0; takePass(i) = 0; noticeBall(i) = 0; inPlace(i)=1; konstitfel(i)=1; state{i}='Idle';endinit_red_mote;init_blue_mote;xBall = 0.2*rand;yBall = 0.2*rand;% Controller gainsKx = 0.8*ones(1,10);Ky = 0.8*ones(1,10);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -