If Then Combo Command Possible?
marcboebot
Posts: 5
For school, I am programming a boebot to go through a maze and up a ramp autonomously. I am using an accelerometer sensor to help my boebot go up the ramp. I need my boebot to stop when it gets to the top of the ramp. Right now, I have it programmed so that if y > 2500, gosub foward, and if y < 2500 stop. But I need to add this programming to the programming of the infrared sensors I am using. I don't want the boebot to stop moving until after it goes up the ramp, but with the programming I have right now, it won't begin moving unless it starts at a tilt. Is there a way to use an If Then command so I can say if y > 2500 and then y < 2500 then stop? Or is there another way to program it to only stop once its reached the top of the ramp?