To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 1392
1391  |  1393
Subject: 
RE: Slope Parameter in SetSensorMode
Newsgroups: 
lugnet.robotics
Date: 
Sun, 13 Dec 1998 18:38:36 GMT
Original-From: 
David <david@smalldomain.ch#SayNoToSpam#>
Viewed: 
1355 times
  
You could be right, I have to admit that I fiddled around with a couple of
things including the ClearSensorValue. A very quick further test suggests
that it isn't the ClearSensorValue but the combination of SetSensortype
followed by SetSensorMode which is causing the sensor value to reset.

Sorry for the confusion, & hope that this doesn't add to it,

David

-----Original Message-----
From: lugnet.robotics@lugnet.com
[mailto:lugnet.robotics@lugnet.com]
Sent: 13 December 1998 17:14
To: lego-robotics@crynwr.com
Subject: Re: Slope Parameter in SetSensorMode

lego-robotics@crynwr.com (David) writes:
>a ClearSensorValue seems to have fixed this.
>

I wrote a simple VB program to look into this, and as far as
I can tell
ClearSensorValue does not reset the sensor state in this
mode.  It will remain
in whatever state it was in until you turn the RCX off.  You
can even stop the
program and restart it and it will still remember the last
state.
ClearSensorValue only seems to work for Rotation sensors
where it resets the
count to 0.



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
6 hours ago
Custom Search

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