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

📄 deadreckonspace.m

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

function new_position=deadReckonSpace(position,sr,sl,bw)
%% This function calculate the new position of the robot
%% according to the space covered by the right wheel and by the left wheel
x0=position(1);
y0=position(2);
theta0=position(3);
theta=theta0+(sr-sl)/bw;
x=x0+(sr+sl)/2*(cos(theta));
y=y0+(sr+sl)/2*(sin(theta));
new_position=[x,y,theta];

end

⌨️ 快捷键说明

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