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

📄 crossx.m

📁 nn modelling and auto-pid controller
💻 M
字号:
function x = crossX(bcase, theta, beta, left, t)%% computes the crossover point for the given tau = t%    for the given crossover case with the PURSUER at the origin%    if left = 1 computes the left trajectory, otherwise the right% helper function for crossover.m% % Ian Mitchell, 4/23/01  if(left)					% left trajectory    switch bcase(1)    case 1      x = -1 + 2 * cos(theta + t) - cos(theta) ...             + (beta + theta + 2 * t) * sin(theta + t);    case 2      x = 1 - cos(theta) + (beta - theta) * sin(t + theta);    otherwise      error([ 'case ' num2str(bcase(1)) ' is not supported on left' ]);    end  else						% right trajectory    switch bcase(2)    case 1      x = 1 - 2 * cos(theta - t) + cos(theta) ...	      + (beta + 2 * t - (2 * pi + theta)) * sin(theta - t);    case 2      x = 1 - cos(t) + beta * sin(pi + theta / 2) ...	     - cos(theta - t) + cos(theta);    otherwise      error([ 'case ' num2str(bcase(2)) ' is not supported on right' ]);    end  end

⌨️ 快捷键说明

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