Skip to content

Commit 405a073

Browse files
committed
Set default sensor sampling rate to 1kHz
1 parent d258cd7 commit 405a073

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
@@ -12,7 +12,14 @@ class SensorClass {
1212
virtual ~SensorClass();
1313

1414
uint8_t id();
15-
bool begin(float rate = 1, uint32_t latency = 0);
15+
/*
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);
1623
void configure(float rate, uint32_t latency);
1724
void end();
1825

0 commit comments

Comments
 (0)