Continue a loop after it's been broken?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
mcsummation
Posts: 220
Joined: 23 Jan 2012, 17:07
Location: Round Rock, TX

Re: Continue a loop after it's been broken?

Post by mcsummation »

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.
hassenplug
Posts: 346
Joined: 27 Sep 2010, 03:05
Contact:

Re: Continue a loop after it's been broken?

Post by hassenplug »

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
---> Link to lots of MINDSTORMS stuff under my picture --->
legostormrobot
Posts: 19
Joined: 12 Jul 2012, 17:48

Re: Continue a loop after it's been broken?

Post by legostormrobot »

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!
Noah Allen

Age: 15

"The computer was invented to solve problems that didn't exist before."
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests