View unanswered posts | View active topics It is currently Sun Aug 18, 2019 8:25 pm






Reply to topic  [ 2 posts ] 
Obstacle Orchard Challenge 
Author Message
Rookie

Joined: Fri Jun 20, 2014 1:22 pm
Posts: 11
Post Obstacle Orchard Challenge
Hi,

For this challenge, do we need a repeatUntil block for each individual movement for moving forward or turning? There would be a lot of them and the program would seem lengthy. Is this the correct logic? Let me know if I'm on the right path.

Thanks


Sun Aug 10, 2014 9:53 pm
Profile
Moderator
Moderator

Joined: Mon Oct 04, 2010 2:18 pm
Posts: 196
Post Re: Obstacle Orchard Challenge
Hello,

Thanks for the question. What you want to do hear is have the robot check the condition of the distance sensor repeatedly. So, if the distance sensor detects and object, the robot stops. However, if the distance sensor does not check an object, you want the robot to move throughout the Orchard Challenge. Therefore, you don't want to have multiple repeatUntil commands; instead, you want to check the condition of the distance sensor continuously by utilizing an if/else conditional block inside of a loop. Please let me know if you have more questions. Thanks,


Mon Aug 11, 2014 7:31 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.