what is code to send a signal to ardino uno pin (ardino pin is connected to servo motor),when in the below program if tomato1 is absent and i need to run motor1 in that case.?plz help
조회 수: 2 (최근 30일)
이전 댓글 표시
for i = 1:object if stats(i).Centroid(2) > 0 && stats(i).Centroid(2) < 160 sprintf('Tomato 1 is there') else sprintf('Tomato 1 is absent') end end for i = 1:object if stats(i).Centroid(2) > 160 && stats(i).Centroid(2) < 320 sprintf('Tomato 2 is there') else sprintf('Tomato 2 is absent') end end for i = 1:object if stats(i).Centroid(2) > 320 && stats(i).Centroid(2) < 480 sprintf('Tomato 3 is there') else sprintf('Tomato 3 is absent') end
댓글 수: 0
답변 (0개)
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 ROS Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!