Subject:
|
Re: FindLight
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 25 Feb 2007 19:24:26 GMT
|
Viewed:
|
3666 times
|
| |
| |
In lugnet.robotics, linmix <linmix@gmail.com> wrote:
>
> Can anyone please explain what I'm doing wrong here?
> Thanks in advance
> linmix
> if (SENSOR_2 > maxlight)
> {
> maxlight = light // set maxlight to new max value
I don't see where "light" ever gets set.
JB
|
|
Message has 1 Reply: | | Re: FindLight
|
| Thanks for the reply. I see I overlooked something significant there. Going over it all again I think I don't need 'light' Also, the parse errors are due to my omitting the ; at the end of each statement I've also discovered that I should put some (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
Message is in Reply To:
| | FindLight
|
| I'm trying to write a simple program to make a roverbot-like robot seek for light. My basic idea is to use a timer ( Timer(0) ) to keep track of how long the robot has been turning and a variable (time) to remember the moment when the brightest (...) (18 years ago, 25-Feb-07, to lugnet.robotics)
|
10 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|