Search found 7 matches

by aleynov
28 Feb 2013, 01:42
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

Thank you all so much. I figured out the code today and it works, only problem is it didn't stop on the green pad. I appreciate the help!
by aleynov
25 Feb 2013, 22:45
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

Here's the best I can think of with what I want the robot to do. the threshold I am using is 39, which is what it reads when it is on the black line. I am using variable x to keep count of the bumps in order to tell it which way to rotate. So on the first bump, x=x+1 will tell it to turn right so it...
by aleynov
25 Feb 2013, 20:32
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

That's a good start. Now, you need to expand on that a bit. 1) How does the robot follow the line? 2) What exactly should it do after bumping into an obstacle? The more you can break down each of these steps, the easier it will be to write the program. Steve The robot is a tankbot with a front moun...
by aleynov
25 Feb 2013, 20:24
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

edit
by aleynov
23 Feb 2013, 05:59
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

Also, I only have 1 touch sensor and 1 bump sensor. The robot is a tankbot with a bumper on the front for bumping into the obstacles. I used a timer in the code to tell it when to turn right or left. So when x == 0 and sensor 1 == 1, that is the first turn and so on. This is a very basic engineering...
by aleynov
23 Feb 2013, 05:57
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Re: Help with NQC code

Steve, I need the robot to follow the line until it bumps into the obstacle (touch sensor), then back up about 4 inches, and then pick up the line that it needs to follow without going back in the direction it came from. This code did exactly what you said, it bumped and then turned without picking ...
by aleynov
22 Feb 2013, 14:27
Forum: Mindstorms Software
Topic: Help with NQC code
Replies: 13
Views: 17100

Help with NQC code

Hi, I am new here so I apologize in advance if I am posting in the wrong section. I am working on a code for a tankbot with a light sensor and a touch sensor. It has to follow a black line, and make turns at t intersections. It will bump into a small object, back up and turn. It has to stop at a gre...