フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how can I make this loop in matlab

1 回表示 (過去 30 日間)
areej abdulshaheed
areej abdulshaheed 2020 年 3 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
  6 件のコメント
darova
darova 2020 年 3 月 5 日
I voted for your question so you can get help faster
Bruno Luong
Bruno Luong 2020 年 7 月 28 日
I voted for your question so you can get help faster
What if you haven't made a vote? :-)

回答 (1 件)

Maria
Maria 2020 年 7 月 28 日
Your logic path translates to something like this:
while (1)
[obstfront, minobs] = URG_scane ();
if (obstfront > minobs)
%Rise head
%URG_scane
if (obstfront > minobs)
%Put downs the head
%URG_scane
if (obstright < minobs)
%Turn right 60 min
elseif (obstleft < minobs)
%Turn left 60 mins
else
%Go backward (20 min)
break;
else
%Obstacle climbing 100 mins
end
else
%Go forward 20 MIN
end
end
You should now write the code for each different function (as URG_scane, Go_forward, etc.). Hope this helps!

この質問は閉じられています。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by