|Simulation Sentry II Problems
|Page 1 of 1|
|Author:||droberts6262 [ Thu Feb 18, 2016 5:42 pm ]|
|Post subject:||Simulation Sentry II Problems|
We are having trouble with solving this problem and could use some help. In this task we are to continuously go around an object as a sentry. If we come to an object that is observed using our ultrasonic sensor, we are to stop until it is removed. Once removed, we are supposed to continue our "sentry duty". Our robot will stop, but only after it makes a turn. If an object is placed in the way during a "straight" portion, it will not stop. If it is placed in front of the robot after to turns, it stops and continues the sentry duty. So it sort of works, but overall it does not.
We think that because of the way that we wrote the code, it has to go through the straight portion and the turn before it can do anything else. We have tried many different things. We are at a loss. Any help would be appreciated.
Here is the code:
Thanks so much!!
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group