To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 336
335  |  337
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR