IR sensor read for Lego Mindstorms EV3
Mostrar comentarios más antiguos
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
Respuestas (0)
Categorías
Más información sobre LEGO MINDSTORMS EV3 Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!