Fixed algorithm to read 3 bytes of accelerometer data registers
Fork of COG4050_adxl355_adxl357 by
Calibration/READMEcalibration.md@10:e054891b3598, 2018-09-10 (annotated)
- Committer:
- nfathurr
- Date:
- Mon Sep 10 10:01:49 2018 +0000
- Revision:
- 10:e054891b3598
- Parent:
- 8:9e6ead2ee8d7
Fixed algorithm to read 3 bytes of accelerometer data registers
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vtoffoli | 6:45d2393ef468 | 1 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 2 | /* ADXL calibration equation |
vtoffoli | 6:45d2393ef468 | 3 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 4 | |
vtoffoli | 6:45d2393ef468 | 5 | |acx| |pxx pxy pxz| |ax| |bx| |
vtoffoli | 6:45d2393ef468 | 6 | |acy| = |pyx pyy pyz|*|ay|+|by| |
vtoffoli | 6:45d2393ef468 | 7 | |acz| |pzx pzy pzz| |az| |bz| |
vtoffoli | 6:45d2393ef468 | 8 | |
vtoffoli | 8:9e6ead2ee8d7 | 9 | Rotation matrix |
vtoffoli | 8:9e6ead2ee8d7 | 10 | z axis pointing down - downwards pointing gravity vector of magnitude 1 g |
vtoffoli | 8:9e6ead2ee8d7 | 11 | The yaw rotation is about the positive z axis, the pitch rotation is about the |
vtoffoli | 8:9e6ead2ee8d7 | 12 | positive y axis and the roll rotation is about the positive x axis |
vtoffoli | 8:9e6ead2ee8d7 | 13 | |
vtoffoli | 6:45d2393ef468 | 14 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 15 | /* ADXL calibration procedures |
vtoffoli | 6:45d2393ef468 | 16 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 17 | |
vtoffoli | 6:45d2393ef468 | 18 | 2 MEASUREMENT ORIENTATIONS: the orientations are selected to give an equal |
vtoffoli | 6:45d2393ef468 | 19 | posit5ive gravitational filed of g/sqrt(3) in each axis followed by -g/sqrt(3) |
vtoffoli | 6:45d2393ef468 | 20 | in each axis |
vtoffoli | 6:45d2393ef468 | 21 | We assumed that pij=0 when i!=j |
vtoffoli | 6:45d2393ef468 | 22 | |
vtoffoli | 6:45d2393ef468 | 23 | |
vtoffoli | 7:5aaa09c40283 | 24 | 3to8 MEASUREMENT ORIENTATIONS |
vtoffoli | 7:5aaa09c40283 | 25 | |
vtoffoli | 7:5aaa09c40283 | 26 | |
vtoffoli | 6:45d2393ef468 | 27 | 12 MEASUREMENT ORIENTATIONS |