flush.m.svn-base
来自「这是一个用来控制机器人ePuck的matlab GUI.通过它」· SVN-BASE 代码 · 共 23 行
SVN-BASE
23 行
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 + =
减小字号Ctrl + -
显示快捷键?