|
Page 1 of 1
|
[ 5 posts ] |
|
program to stay near wall & program to go back and forth
| Author |
Message |
|
tgarrisoniv
Rookie
Joined: Mon Mar 26, 2012 12:55 pm Posts: 2
|
 program to stay near wall & program to go back and forth
i am trying to create a program for my robot to sear within 8-10 cm of a wall. i have 2 sensors, one facing forward and one to the right. the square the robot will be in has walls that come out so the forward is necessary. the program i have made simply makes the robot go in circles and when it is with 8-10 cm it just stops. i also am trying to make a program that makes the robot go back and forth across the arena while moving forward each time. unfortunately, it is also a failure... any help is appreciated!!
|
| Mon Apr 02, 2012 5:35 pm |
|
 |
|
ronmcrae
Rookie
Joined: Wed Jul 21, 2010 11:23 pm Posts: 39
|
 Re: program to stay near wall & program to go back and forth
I'm thinking you might want to replace with
|
| Mon Apr 02, 2012 10:48 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
 Re: program to stay near wall & program to go back and forth
Ron, It's certainly the most creative use of SensorValue and logic operators I have ever seen  - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Tue Apr 03, 2012 1:20 am |
|
 |
|
tgarrisoniv
Rookie
Joined: Mon Mar 26, 2012 12:55 pm Posts: 2
|
 Re: program to stay near wall & program to go back and forth
ron, thanks. xander, i think thats a compliment? this has been a nightmare for me! 
|
| Tue Apr 03, 2012 8:08 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
 Re: program to stay near wall & program to go back and forth
Yeah, it was a bit of a joke. It is amusing to see people do things that seem perfectly logical (pardon the pun) but that really don't work. I can see the thought process behind it and am somewhat surprised that I have not fallen into the same trap  Making mistakes, some even slightly amusing (to others anyway), are a great way to learn new things. I still make plenty of boneheaded mistakes and I've been programming for almost 18 years  - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Tue Apr 03, 2012 2:53 pm |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 4 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|