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

[sensorfw] Use setDataRate() for settings data rates. Fixes JB#60417 #1

Merged
merged 1 commit into from Mar 29, 2023

Conversation

spiiroin
Copy link
Contributor

Sensorfwd setInterval() method takes time in milliseconds -parameter which is reciprocal of requested data rate in Hertz. As the time value is an integer, this severely limits the available data rates especially in the high end to: 1000, 500, 333, 250, 200, ... Hz

Switch to using setDataRate() which is available in sensorfwd >= 0.13.0. It is both conceptually better match with qt side sensor interfaces and more future proof as data rate is transferred over D-Bus as floating point value.

rpm/qtsensors.spec Outdated Show resolved Hide resolved
Sensorfwd setInterval() method takes time in milliseconds -parameter
which is reciprocal of requested data rate in Hertz. As the time value
is an integer, this severely limits the available data rates especially
in the high end to: 1000, 500, 333, 250, 200, ... Hz

Switch to using setDataRate() which is available in sensorfwd >= 0.13.0.
It is both conceptually better match with qt side sensor interfaces and
more future proof as data rate is transferred over D-Bus as floating
point value.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin spiiroin merged commit 83dd7cf into sailfishos:mer-5.6 Mar 29, 2023
@spiiroin spiiroin deleted the jb60417_data_rates branch March 29, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants