2571030793b0686f22e333bb4375dcd04651066e,Software/Python/easygopigo3.py,DistanceSensor,read_mm,#DistanceSensor#,2407
Before Change
mm = self.read_range_single()
except:
mm = -1
self.release()
attempt = attempt + 1
time.sleep(0.001)
// add the reading to our last 3 readings
After Change
// if sensor insists on that value, then pass it on
while (mm > 8000 or mm < 5) and attempt < 3:
if self.use_mutex is True:
self.acquire()
try:
mm = self.read_range_single()
except:
mm = 0
if self.use_mutex is True:
self.release()
attempt = attempt + 1
time.sleep(0.001)
// add the reading to our last 3 readings
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 8
Instances
Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: read_mm
Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: _readingValues
Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_humidity
Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_temperature
Project Name: DexterInd/GoPiGo3
Commit Name: 2571030793b0686f22e333bb4375dcd04651066e
Time: 2017-08-09
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DHTSensor
Method Name: read_dht