Continue a loop after it's been broken?
-
- Posts: 220
- Joined: 23 Jan 2012, 17:07
- Location: Round Rock, TX
Re: Continue a loop after it's been broken?
I went back and reread what you've written. I had, obviously, misread what you want to do. My interpretation of what I understand you want is: "You want the ultrasonic sensor going below 10cm to 'pause' the loop execution, regardless of what block within the loop is next to run. Then, when the ultrasonic code is finished, resume execution of the code within the loop." Is that correct? If so, I'll work on a solution for you.
McSummation aka James
http://www.mcsummation.com/Mindstorms/
http://www.mcsummation.com/Mindstorms/
-
- Posts: 346
- Joined: 27 Sep 2010, 03:05
- Contact:
Re: Continue a loop after it's been broken?
Usually, with something like this, there are different solutions that you may not have considered. If you want, you could explain a bit more about what you're doing, and how you want to do it, and see if anyone else has suggestions on a different approach.
Steve
Steve
---> Link to lots of MINDSTORMS stuff under my picture --->
-
- Posts: 19
- Joined: 12 Jul 2012, 17:48
Re: Continue a loop after it's been broken?
So I basically am making it work with a series of switches... I guess the "pausing the loop" was the wrong mindset for what I'm trying to do.
Thanks for all the replies!
Thanks for all the replies!
Noah Allen
Age: 15
"The computer was invented to solve problems that didn't exist before."
Age: 15
"The computer was invented to solve problems that didn't exist before."
Who is online
Users browsing this forum: No registered users and 1 guest