We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d258cd7 commit 405a073Copy full SHA for 405a073
src/sensors/SensorClass.h
@@ -12,7 +12,14 @@ class SensorClass {
12
virtual ~SensorClass();
13
14
uint8_t id();
15
- bool begin(float rate = 1, uint32_t latency = 0);
+ /*
16
+ * Sample rate: it indicates the frequency at which a sensor is sampled.
17
+ * It is expressed in Hz.
18
+ * Latency: it indicates how much ms time a new value is retained in its fifo
19
+ * before a notification to the host is sent via interrupt.
20
+ * It is expressed in ms.
21
+ */
22
+ bool begin(float rate = 1000, uint32_t latency = 1);
23
void configure(float rate, uint32_t latency);
24
void end();
25
0 commit comments