Skip to content

Commit 6847a16

Browse files
committed
docs(steami_config): clarify Z offset calculation in comments
in calibrate accel example
1 parent 269db82 commit 6847a16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/steami_config/examples/calibrate_accelerometer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
ox = ax
5050
oy = ay
5151
oz = az + 1.0
52+
# Flat, screen up → expected (0,0,-1g), so Z offset = measured - (-1g) = az + 1.0
53+
# because gravity points downward while the sensor Z axis is defined positive downward
5254

5355
print("\nMeasured average:")
5456
print(" ax = {:.3f} g".format(ax))

0 commit comments

Comments
 (0)