Commit Graph

6 Commits

Author SHA1 Message Date
Ramon Moesching 8e474a0504 imu-setup.sh: adding double quote
BugzID: 62694

Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
2020-04-30 11:26:07 +02:00
Alexandre Bard c628a3f981 imu-setup: Check status before configuring
Configuration is not possible while buffer mode is ongoing. The previous
code was making sure that it was disabled but was always enabling it
once done, even if it was not enabled before. But if only the sampling
frequency has been set, it could happen that enabling was not possible.
For example, if no channel was selected. Leading to error messages in
the logs.

BugzID: 62694
2020-04-29 17:01:05 +02:00
Alexandre Bard 99f672de40 imu-setup: imu-poll: Fix symlink not deleted
When the symlink is broken, .exists returns false.
To check if the symlink itself exists, it is required to use .lexists.

BugzID: 61346
2020-04-21 09:47:18 +02:00
Alexandre Bard b8370406c5 imu-setup: Add support for polling mode
Required for HW23.
The code is not really clean but helps make the difference between HW21
and HW23. Polling creates a device /dev/imu0 giving the poll frequency.

BugzID: 61346
2020-04-16 22:36:08 +02:00
Lucien Mueller 3356bef529 imu-setup: start service before gpsd.
since gpsd is not setting imu sampling rate anymore it is not required
anymore to start gpsd first and then overwrite imu settings. anyway, starting
imu config before gpsd looks more reliable by design.

BugzID: 57164

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2019-11-01 17:52:13 +01:00
Lucien Mueller fd6835ac82 imu: addded configuration service.
BugzID: 59524

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-10-17 13:27:47 +02:00