4 Commits
Author SHA1 Message Date
Thomas Farstrike 94401dbbde SensorManager: skip if no iio sensor connected
This fixes:

Traceback (most recent call last):
  File "<stdin>", line 31, in <module>
  File "lib/mpos/main.py", line 150, in <module>
  File "lib/mpos/board/linux.py", line 133, in <module>
  File "lib/mpos/sensor_manager.py", line 286, in class_method
  File "lib/mpos/sensor_manager.py", line 109, in init_iio
  File "lib/mpos/imu/manager.py", line 52, in init_iio
  File "lib/mpos/imu/drivers/iio.py", line 21, in __init__
  File "lib/mpos/imu/drivers/iio.py", line 129, in ensure_sampling_frequency_max
TypeError: unsupported types for __add__: 'NoneType', 'str'
2026-03-11 15:10:48 +01:00
Pavel MachekandGitHub 0ac9d7155e gyro: add gyroscope test/display application (#76)
* iio: switch to maximum sampling frequency, apply mount matrix

* mag: Apply mount matrix for magnetometer, too

* iio: allow separate path for gyro sensor

* gyro: fork from compass, get drawing back to work

* iio: add todo.

* gyro: gyro seems to work way better on pinephone

* iio: move scale conversion where it belongs

* gyro: rely of iio driver providing right scale of values

* iio: Turn down debugging, but I still get framerate drops

* gyro: add reset and calibration support, introduce vectors, display help image
2026-03-11 12:36:00 +01:00
Pavel Machek bc4611bf4b magn: Start magnetometer support
Add magnetometer support for iio. With suitable application, this
allows painting compass.
2026-02-22 17:55:35 +01:00
Thomas Farstrike 70915a78ca Rework IMU drivers 2026-02-21 12:11:08 +01:00