Subject:
|
Re:Solved?? rotation sensor problem
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 17 Oct 1999 00:43:12 GMT
|
Viewed:
|
1069 times
|
| |
| |
On Sep.10,I posted the message regarding rotation-sensor problem.
I realized that the first threshold value '0x6fc0' in CURRENT_STATE is
too small. Some sensors give raw values around 0x7000.
#define CURRENT_STATE
(raw<0x6fc0?STATE_0:(raw<0xafc0?STATE_1:(raw<0xefc0?STATE_2:STATE_3)))
^^^^^
I changed this value to 0x7fc0. It's works very well.
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|