📄 actuator_init.m
字号:
function actuator_init% Distributed control system: actuator node%% Receives messages from the controller and actuates % the plant.% Initialize TrueTime kernelttInitKernel(0, 1, 'prioFP'); % nbrOfInputs, nbrOfOutputs, fixed priority% Create actuator taskdeadline = 100;prio = 1;ttCreateTask('act_task', deadline, prio, 'actcode');% Initialize networkttCreateInterruptHandler('nw_handler', prio, 'msgRcvActuator');ttInitNetwork(2, 'nw_handler'); % node #2 in the network
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -