Skip to content

Commit 6f3fe0a

Browse files
Fix test_sensor_manager.py
1 parent 11867dd commit 6f3fe0a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal_filesystem/lib/mpos/sensor_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,10 @@ def __init__(self, i2c_bus, address):
686686

687687

688688
def read_acceleration(self):
689+
689690
"""Read acceleration in m/s² (converts from mg)."""
690691
ax, ay, az = self.sensor._read_raw_accelerations()
692+
691693
# Convert G to m/s² and apply calibration
692694
return (
693695
((ax / 1000) * _GRAVITY) - self.accel_offset[0],

tests/test_sensor_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_chip_id(self):
7272
"""Return WHO_AM_I value."""
7373
return 0x6A
7474

75-
def read_accelerations(self):
75+
def _read_raw_accelerations(self):
7676
"""Return mock acceleration (in mg)."""
7777
return (0.0, 0.0, 1000.0) # At rest, Z-axis = 1000 mg
7878

0 commit comments

Comments
 (0)