@@ -56,7 +56,6 @@ for analysis e.g. in a spreadsheet.
5656- https://github.com/RobTillaart/AngleConverter
5757
5858
59-
6059## Breakout board
6160
6261From left to right
@@ -142,8 +141,8 @@ Drawback is that this would make the duration unpredictable.
142141- ** uint8_t getAccelSensitivity()** returns 0, 1, 2, 3
143142- ** bool setGyroSensitivity(uint8_t gs)** gs = 0,1,2,3 ==> 250, 500, 1000, 2000 degrees/second
144143- ** uint8_t getGyroSensitivity()** returns 0, 1, 2, 3
145- = ** void setNormalize(bool normalize = true)** normalizes pitch roll yaw or not. Default true.
146- = ** bool getNormalize()** returns flag.
144+ - ** void setNormalize(bool normalize = true)** normalizes pitch roll yaw or not. Default true.
145+ - ** bool getNormalize()** returns flag.
147146
148147
149148#### Actual read
@@ -196,7 +195,25 @@ If **setNormalize(true)** return value will be 0-359.999
196195If ** setNormalize(true)** return value will be 0-359.999
197196
198197
199- ### Register access
198+ #### Digital Low Pass Filter
199+
200+ See datasheet P13-reg26
201+
202+ - ** bool setDLPFMode(uint8_t mode)** mode = 0..6, returns false if mode > 6.
203+ - ** uint8_t getDLPFMode()** returns the current (set) mode.
204+
205+ | Mode | Acc bandwidth | delay | Gyro bandwidth | delay | Fs |
206+ | :----:| :-------------:| :------:| :--------------:| :------:| :-----:|
207+ | 0 | 260 Hz | 0.0 | 256 Hz | 1.0 | 8 kHz |
208+ | 1 | 184 Hz | 2.0 | 188 Hz | 1.9 | 1 kHz |
209+ | 2 | 94 Hz | 3.0 | 98 Hz | 2.8 | 1 kHz |
210+ | 3 | 44 Hz | 4.9 | 42 Hz | 4.8 | 1 kHz |
211+ | 4 | 21 Hz | 8.5 | 20 Hz | 8.3 | 1 kHz |
212+ | 5 | 10 Hz | 13.8 | 10 Hz | 13.4 | 1 kHz |
213+ | 6 | 5 Hz | 19.0 | 5 Hz | 18.6 | 1 kHz |
214+
215+
216+ #### Generic Register Access
200217
201218Read the register PDF for the specific value and meaning of registers.
202219
@@ -222,26 +239,31 @@ Read the register PDF for the specific value and meaning of registers.
222239
223240#### Sensitivity Acceleration
224241
225- unit g = gravity == 9.81 m/s^2
242+ The strength of Earth's gravity varies with latitude (equator = 0°, poles = 90°).
243+ The standard value for gravity (gn) is 9.80665 m/s^2 (often 9.81 m/s^2)
244+ At the equator the gravity (ge) is 9.78033 m/s^2.
245+
246+ The library provides the constant GRAVITY = 9.80655
226247
227- | Acceleration | value | notes |
228- | :--------------| :-------:| :-------:|
229- | 2 g | 0 | default
230- | 4 g | 1 |
231- | 8 g | 2 |
232- | 16 g | 3 |
248+
249+ | value | Acceleration | m/s2 | notes |
250+ | :-------:| :--------------| :----------:| :-------:|
251+ | 0 | 2 g | 19.6131 | default
252+ | 1 | 4 g | 39.2262 |
253+ | 2 | 8 g | 78.4524 |
254+ | 3 | 16 g | 156.9048 |
233255
234256
235257#### Sensitivity Gyroscope
236258
237259unit dps = degrees per second.
238260
239- | Gyroscope | value | notes |
240- | :--------------| : -------:| :-------:|
241- | 250 dps | 0 | default
242- | 500 dps | 1 |
243- | 1000 dps | 2 |
244- | 2000 dps | 3 |
261+ | value | Gyroscope | radians/sec | notes |
262+ | :-------: | : ------------ | :------ -------:| :-------:|
263+ | 0 | 250 dps | 4.36332313 | default
264+ | 1 | 500 dps | 8.72664626 |
265+ | 2 | 1000 dps | 17.45329252 |
266+ | 3 | 2000 dps | 34.90658504 |
245267
246268
247269## Operation
@@ -251,6 +273,9 @@ See examples, use with care.
251273
252274## Future
253275
276+ There is no intention to implement getters and setters for all registers.
277+ However if one specific is needed, please open an issue.
278+
254279#### Must
255280
256281- time
0 commit comments