Wednesday, September 23, 2009
Challenge 1
Day 12: I found the first challenge to be both interesting and fun, except for one small problem. My robot performed as I expected it to, except for the fact that I could not get it to stop on its own. I tried everything I could think of to achieve this, and succeced on one test immediately before the challenge. During and since the challenge though, I could not figure out how to get the robot to stop. I would appreciate comments with advice on this subject. Other than that, my robot worked very well, and did exactly what I wanted.
Subscribe to:
Post Comments (Atom)
You need to declare an end condition. This could be any number of things, such as a timer expiring, or some sensor changing state. In the next challenge, I think the end condition is well defined, and it will be important for you to be able to detect that, else you won't be able to complete the task.
ReplyDeleteTo get it to stop on its own what you have to do is set a set time for the entire program to run and then estimate where the time will have to coincide with where you want it to stop.
ReplyDeleteThank you!
ReplyDelete