Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/b/r/BrickPython-0.4/test/TestSensor.py   BrickPython(Download)
                              }.items():
            for i in xrange(0,100):
                sensor.updateValue( input )  # Remove effects of smoothing.
            self.assertEquals( sensor.value(), output )
 
    def testUltrasonicSensorSmoothing(self):
        sensor = UltrasonicSensor( '1' )
        for input in [ 24,14,10,8,10,10,50,10,50,18,50]:
            sensor.updateValue( input )