Fixed algorithm to read 3 bytes of accelerometer data registers
Fork of COG4050_adxl355_adxl357 by
READMEcalibration.md@6:45d2393ef468, 2018-08-14 (annotated)
- Committer:
- vtoffoli
- Date:
- Tue Aug 14 06:49:07 2018 +0000
- Revision:
- 6:45d2393ef468
- Child:
- 7:5aaa09c40283
update 14.08.2018
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 | 6:45d2393ef468 | 9 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 10 | /* ADXL calibration procedures |
vtoffoli | 6:45d2393ef468 | 11 | /* ----------------------------------------------------------------------------- |
vtoffoli | 6:45d2393ef468 | 12 | |
vtoffoli | 6:45d2393ef468 | 13 | 2 MEASUREMENT ORIENTATIONS: the orientations are selected to give an equal |
vtoffoli | 6:45d2393ef468 | 14 | posit5ive gravitational filed of g/sqrt(3) in each axis followed by -g/sqrt(3) |
vtoffoli | 6:45d2393ef468 | 15 | in each axis |
vtoffoli | 6:45d2393ef468 | 16 | We assumed that pij=0 when i!=j |
vtoffoli | 6:45d2393ef468 | 17 | |
vtoffoli | 6:45d2393ef468 | 18 | |
vtoffoli | 6:45d2393ef468 | 19 | 3 MEASUREMENT ORIENTATIONS |
vtoffoli | 6:45d2393ef468 | 20 | 4 MEASUREMENT ORIENTATIONS |
vtoffoli | 6:45d2393ef468 | 21 | 6 MEASUREMENT ORIENTATIONS |
vtoffoli | 6:45d2393ef468 | 22 | 8 MEASUREMENT ORIENTATIONS |
vtoffoli | 6:45d2393ef468 | 23 | 12 MEASUREMENT ORIENTATIONS |