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 / 1162
  rotation sensor problem, again...
 
Just when you thought it was all fixed. I use the following code: ds_active(&SENSOR_2); ds_rotation_on(&SENSOR_2); ds_rotation_set(&SENSOR_2, 0); to setup a rotation sensor. Immediately after calling ds_rotation_set(), and /without moving the (...) (24 years ago, 14-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem, again...
 
(...) That you see values -1, 2, and 1 sounds like the current state of the rotation sensor is not considered when when the sensor is reset, like it is reset to a state of 0 when it should be reset to the current state of the sensor, like 0, 1, 2, (...) (24 years ago, 15-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem, again...
 
(...) On second thought, this need not be the case. Maybe the initial sensor state starts out at whatever value it normally starts out at after bootup (probably zero), and simply never gets set (or reset) to the state indicated by looking at the (...) (24 years ago, 15-Jun-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem, again...
 
I had the same problem and I solved it with a msleep(50). msleep(10) is not enough. (...) (24 years ago, 3-Jul-00, to lugnet.robotics.rcx.legos)

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