Skip to content

Commit b1ecc21

Browse files
author
Russell Green
committed
chore: updates
1 parent 4435643 commit b1ecc21

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/sensors/hcsr04/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
import RPi.GPIO as GPIO
55

66

7-
SENSOR_SETTLE_DELAY = 0.1
8-
PULSE_TIME = 0.00001
9-
10-
117
class OutputUnit(Enum):
128
CENTIMETERS = 'cm'
139
MILLIMETERS = 'mm'
@@ -21,8 +17,8 @@ class HCSR04:
2117
def __init__(self, **kwargs):
2218
self.trigger_pin = None
2319
self.echo_pin = None
24-
self.sensor_settle_delay = 2
25-
self.pulse_time = PULSE_TIME
20+
self.sensor_settle_delay = 0.1
21+
self.pulse_time = 0.00001
2622
self.timeout_seconds = 2
2723
self.output_unit = OutputUnit.CENTIMETERS.value
2824
self.__read_start_time = None

src/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
__author__ = "Russell Green"
1313
__license__ = "MIT"
14-
__version__ = "0.0.0-rc.3"
14+
__version__ = "0.0.0-rc.4"
1515
__maintainer__ = "Russell.Green"
1616
__email__ = "[email protected]"
1717
__status__ = "Production"

0 commit comments

Comments
 (0)