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

📄 deadreckonaccelerationrk4.m

📁 该程序用PID系统实现差动转向车辆控制
💻 M
字号:
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL

function position=deadReckonAcceleration(ar,al,vr,vl,t,b)
%%given the ar=right accelerationt
%% al=left acceleration
%% sr=space run for the right wheel
%% sl=space run for the left wheel
%% use runge kutta4 to find the final position



[Tx,X]=Rungekutta4(t(0),t(end),nsteps,0,f1);
f2='(A*t+B)*sin(C*t^2+D*t+theta0)';
[Ty,Y]=Rungekutta4(t(0),t(end),nsteps,0,f2);
position=[X(end,1),Y(end,1),theta];

end

⌨️ 快捷键说明

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