-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathchangelog
105 lines (79 loc) · 3.37 KB
/
changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Changelog
=========
Version 1.7
- Update hcsr04.py. Replace depracated methods with new ones.
- Add unittest for hcsr04.py script
Version 1.6.3
- Removed RPi.GPIO Install required in setup.py and added apt package install to instructions
in the README.md
- Support for bdist_wheel installs of hcsr04sensor
Version 1.6.2
- pin to the latest version of RPi.GPIO (v.0.7.0)
Version 1.6.1
- force hcsr04sensor to use a specific version of RPi.GPIO in setup.py. Currently uses
RPi.GPIO 0.6.5
Version 1.6
- Remove rounding from library. Must now be handled by your application
- Deprecated functions (will be removed in future versions)
depth_metric, depth_imperial, distance_metric, distance_imperial
have been replaced with depth and distance
- Add methods to calculate:
- liquid volume of a cuboid (square or rectangular)
- liquid volume of a standing cylinder
- liquid volume of a cylinder on its side
- liquid volume of an elliptical standing cylinder
- liquid volume of an elliptical cylinder on its side
- basic_distance now a staticmethod on the Measurement class. This method
reads directly from RPi.GPIO. No sample sizes or speeds. Metric only.
No pin cleanups. That should all be handled by your code.
- Changes to recipes to remove rounding
- Many new recipes added for different tank types
- Change to hcsr04.py to remove rounding
- Add recipes for standing cylinder volume and cylinder volume side
- Add tests for all measurements
Version 1.5.3
Add a static basic_distance function to sensor.py. This was added by request.
See README for details
Version 1.5.2
Allow use of BCM or BOARD values to identify GPIO pins. hcsr04sensor
uses BCM values by default, but allows the user to override with BOARD
values if they wish.
Version 1.5.1
Added a script called hcsr04.py that allows testing the library.
run 'hcsr04.py --help' to see options.
Version 1.5.0
Add error handling around failed echo return pulses which could indicate
a sensor or cable problem. Will allow applications that use the module
to raise an exception and have better error reporting rather than having
their app hang indefinitely with 100% CPU spike.
Version 1.4.0
Allow changing the default sample_wait from 0.1 seconds to a faster
interval. This is the speed of the individual samples in sample_size.
Version 1.3.0
Add default values for unit, temperature and round_to in sensor.py
hcsr04sensor uses metric temperature by default.
Most use cases don't need to specify this and just causes extra typing
for nothing. But option is there to pass the imperial temperature if you like.
Rounding beyond 1 decimal is pointless as readings on a multi tasking OS will
not be Real Time and will have variance within 1 cm.
But if you need to you can specify round_to to be greater
than 1
See the provided example scripts for usage.
Version 1.2.0
Python 3 compatibility
Version 1.1.4
Allow changing the default sample size from 11 to a user defined value. Default
remains 11 unless otherwise specified.
Version 1.1.3
Cleanup only GPIO pins being used in sensor.py
Version 1.1.2
Improved error handling in sensor.py
Version 1.1.1
All functions in sensor.py now methods of Measurement class
Version 1.1.0
Module expanded to allow metric or imperial readings.
See examples/examples.py for usage
Version 1.0.3
Small change to example script depth.py
Version 1.0.2
-Fix bug introduced with version 0.5.11 of RPi.GPIO