1

基本上我试图找到一种方法来检查何时达到 tacholimit。我可以使用,Waitfor但我想在电机旋转时从传感器获取数据。

我正在使用由RWTH Aachen开发的乐高 MATLAB 库。

motor.SendToNXT();
motor.WaitFor();
Time(1)=0.0;

  tic;
  i=1; 
  while % here is what I need a way to check if tacholimit is reached
   % get values from sensor end
   Time(i)=toc; 
end
4

0 回答 0