IR sensor read for Lego Mindstorms EV3
이전 댓글 표시
We are trying to control the Lego Mindstorms EV3 which involves reading the proximity and the beacon values for the IR sensor. I have written a small MATLAB script which is included in Simulink as an embedded matlab function. The code looks like this
function [proximity,heading]= Readsendata myev3=legoev3('usb')
myirsensor=irSensor(myev3)
[proximity,heading] = readBeaconProximity(myirsensor,1)
end
I received an error while running the model in the external mode which shows
Code generation does not support the 'delete' method. Handle objects are only destroyed when program execution ends, and destructors are never called.
Function 'legoev3.m' (#40.15379.15545), line 345, column 9: "function delete(obj)" Launch diagnostic report. Component: MATLAB Function | Category: Coder error
Could you please help me trouble shoot what could be the problem related to the same?
Thanks and Best Regards,
Thomas
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!