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
//! Temperature compensation for HC-SR04 sensor
//!
//! The [`TemperatureProvider`] trait allows for temperature compensation in the HC-SR04 sensor driver.
//! The [`NoTemperatureCompensation`] struct provides a no-op implementation for applications that don't need temperature compensation.
/// Trait for temperature compensation
///
/// Sound speed varies with temperature, affecting distance calculations.
/// This trait allows for temperature-compensated measurements.
/// No-op temperature provider for applications that don't need temperature compensation
;