📄 flush.m.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 + -