Subject:
|
better test value for touch sensors
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 26 Jul 1999 08:21:33 GMT
|
Viewed:
|
1229 times
|
| |
| |
FYI:
The simple-rover example uses an unsafe test value for touch sensors.
Touch sensor should be tested against <0xf000, NOT <0x2000
(e.g. simple-rover.c)
Reason: Not pressed has a constant value >0xf000.
Pressed varies depending on battery change, but <0xf000 seems
safe for pressed. (Notice that values above 0x2000 were
encountered before the battery low symbol appears on the LCD.)
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|