Commit Graph

57 Commits

Author SHA1 Message Date
Reyad Attiyat
7b22982f76 buffer-utils: Display warning if IIO channel not found
See #38
2015-07-15 08:44:18 +02:00
Bastien Nocera
0eeda7b24f buffer-utils: Sanitise empty scale values
In case we can't read a scale from the IIO buffer, make sure that the
scale is set to 1.0 (no changes) rather than 0.0.
2015-07-11 14:31:38 +02:00
Benjamin Tissoires
f04fe60af3 main: Apply scale from readings for IIO buffered drivers
Add a scale output parameter in process_scan_1 so that we pass scale
information from each driver read to the driver, and apply the scale
before passing it on to the main daemon.

Closes #28
2015-07-01 18:36:55 +02:00
Elad Alfassa
42929a882a main: Workaround sysfs attributes naming quirk for compasses
In most IIO sensor types, _scale and _offset is added to the scan element base
name, for example:
in_accel has in_accel_scale and in_accel_offset

For compasses, this is different. Instead of being named
in_rot_from_north_magnetic_tilt_scale aand similar, the _scale and_offset
attributes are named in_rot_scale and in_rot_offset.

This commit adds a workaround to special-case the attribute naming for this
type of sensor.
2015-06-03 11:43:27 +01:00
Bastien Nocera
6d2fff6c10 COPYING: Clarify GPL v3 license
Closes #26
2015-05-27 11:13:46 +02:00
Bastien Nocera
8fd1a46c8d main: Update copyright headers
And remove documentation from it, it should all be in the newly added
docs.
2015-05-20 10:44:52 +02:00
Elad Alfassa
d486aadd0e main: Split iio buffering sensors utility functions to a helper file 2015-03-24 15:49:15 +01:00