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 / 396
395  |  397
Subject: 
Re:Solved?? rotation sensor problem
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 17 Oct 1999 00:43:12 GMT
Viewed: 
992 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
    

Custom Search

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