Skip to content

Commit 7fa51b5

Browse files
committed
Set default sensor sampling rate to 1kHz
1 parent 170b896 commit 7fa51b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/sensors/SensorClass.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ class SensorClass {
1111
virtual ~SensorClass();
1212

1313
uint8_t id();
14-
bool begin(float rate = 1, uint32_t latency = 0);
14+
/*
15+
* Sample rate: it indicates the frequency at which a sensor is sampled.
16+
* It is expressed in Hz.
17+
* Latency: it indicates how much ms time a new value is retained in its fifo
18+
* before a notification to the host is sent via interrupt.
19+
* It is expressed in ms.
20+
*/
21+
bool begin(float rate = 1000, uint32_t latency = 0);
1522
void configure(float rate, uint32_t latency);
1623
void end();
1724

0 commit comments

Comments
 (0)