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

📄 flush.m.svn-base

📁 这是一个用来控制机器人ePuck的matlab GUI.通过它
💻 SVN-BASE
字号:
function [result] = flush(ePic)
%   ser_flush Flush the input and output buffer of Matlab
%   This function is useful each time you do a send / receive cylce with
%   the e-puck. In fact, Matlab probably send old data if you don't do this
%   flush, so the e-puck could crash...
%   
%   [result] = flush(ePic)
%
% Results :
%   result          :   flush result (1:ok, 0:error)
%
% Parameters :
%   ePic            :   ePicKernel object


try
    flushinput(ePic.param.comPort);
    flushoutput(ePic.param.comPort);
    result = 1;
catch
    disp 'Erreur while serial port flushing';
    result = 0;
end

⌨️ 快捷键说明

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