To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.scoutOpen lugnet.robotics.scout in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Scout / 176
    Re: About SensorValueRaw(SENSOR_3) in Scout —Dave Baum
   (...) I think SensorValueRaw(2) should do what you want. I wrote a little test program: ---- int x, y; task main() { y = 0; while(true) { x = SensorValueRaw(2); if (x > (y + 10)) PlaySound(SOUND_CLICK); y = x; } } ---- and it seems to click a lot as (...) (23 years ago, 18-Jul-01, to lugnet.robotics.scout)
   
        Re: About SensorValueRaw(SENSOR_3) in Scout —Zhengrong Zang
   You are right! I got the raw value of light sensor by SensorValueRaw(2) in Scout. By the way, I found the max raw value of Touch sensor is 255 in Scout, not 1023. Zhengrong (...) (23 years ago, 18-Jul-01, to lugnet.robotics.scout)
   
        Re: About SensorValueRaw(SENSOR_3) in Scout —Dave Baum
   (...) I'll fix the documentation for the next release. Dave (23 years ago, 19-Jul-01, to lugnet.robotics.scout)
 

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