⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 car_fb.m

📁 Matlab学习课件
💻 M
字号:
function  car_fb
%Task to do feedback control of carriage

procglbl	% Read in global definitions

if Scar_fb == 0
	% Initialization section - occurs once only
	Scar_fb = 1;	% Make sure this section is not executed again!
	% No initialization for this task
	return;
end

if tstep < Tcar_fb_next
	return;
end

Tcar_fb_next = Tcar_fb_next + Tcar_fb;	% Time for next run

% Always does the feedback algorithm -- no state structure

error = Xset_car - x_car;
v_car = Kp_car * error;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -