Subject:
|
That doesn't totally seem right.
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 1 Dec 2004 12:36:49 GMT
|
Viewed:
|
1306 times
|
| |
| |
In lugnet.robotics, Steve Hassenplug wrote:
> > Your exactly right, the results are a sequence 1-20, meaning that it takes 20
> > sensor changes to go from full speed to stop. The rest of the array is zero's as
> > it should be, so the program works perfectly.
>
> That doesn't totally seem right. I would think it would slow, before stoping.
That occured to me after my last posting, but I can't think why it wouldn't
slow.
>
> One last thing to try is actually storing sensor value in the array.
>
> Also, in the Checkvar function, it looks like the line:
> if(temp<27) temp=0;
>
> should say
>
> if(temp>=27) temp=0;
>
> is that right?
Yes, your right.
I've switched to the 10x Swan firmware, and stored the results in the datalog.
Here they are
Variable 4: 4
Variable 4: 0
Variable 4: 3
Variable 4: 0
Variable 4: 7
Variable 4: 0
Variable 4: 5
Variable 4: 6
Variable 4: 1
Variable 4: 4
Variable 4: 0
Variable 4: 6
Variable 4: 2
Variable 4: 5
Variable 4: 0
Variable 4: 7
Variable 4: 0
Variable 4: 5
Variable 4: 0
Variable 4: 7
Variable 4: 1
Variable 4: 5
Variable 4: 0
Variable 4: 9
Variable 4: 0
Variable 4: 7
Variable 4: 0
These are the timings of the gaps between rotation sensor changes using just an
incrementing loop, not an RCX timer(for those new to this thread).
Basically the variable timeout in the code I posted previously. They should get
progressively bigger.
Steve
|
|
Message has 1 Reply: | | Re: That doesn't totally seem right.
|
| (...) If you're storing this all in the datalog, you should be able to go much farther than 27 times through the loop. Try storing a couple hundred values (how big is the datalog?) Then, you should see the time-between-changes get bigger. Also, it (...) (20 years ago, 1-Dec-04, to lugnet.robotics)
|
Message is in Reply To:
| | Re: why doesn't this work?
|
| (...) That doesn't totally seem right. I would think it would slow, before stoping. One last thing to try is actually storing sensor value in the array. Also, in the Checkvar function, it looks like the line: if(temp<27) temp=0; should say (...) (20 years ago, 1-Dec-04, to lugnet.robotics)
|
9 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
|
|
|
Active threads in Robotics
|
|
|
|