Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move fetching of sensor data to service #2583

Open
marcnause opened this issue Dec 15, 2024 · 0 comments
Open

Move fetching of sensor data to service #2583

marcnause opened this issue Dec 15, 2024 · 0 comments
Assignees
Labels
Enhancement Improvement to an existing feature Instrument: Sensors

Comments

@marcnause
Copy link
Contributor

Actual Behaviour

During testing of #2576 it became clear that some sensors need some time after initialization to send valid data. In the implementation suggested in #2576 the sensors are initialized on every orientation change which results in missed and in invalid data in orientation change.

Expected Behaviour

The sensor should not be re-initialized on orientation change and fetching sensor data should not be stopped on orientation change. This may be prevented by moving the fetching of sensor data to a service.

Steps to reproduce it

Attach a sensor to the PSlab board, attach the board to the phone, open appropriate sensor activity, change orientation. There should be a gap in the data diagram.

Screenshots of the issue
In the following screenshot I have changed the orientation twice which resultes in two gaps.

Would you like to work on the issue?

Maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement to an existing feature Instrument: Sensors
Projects
None yet
Development

No branches or pull requests

1 participant