phyphox / phyphox-android

Physical Phone Experiments
GNU General Public License v3.0
319 stars 42 forks source link

phyphox for Android, uncalibrated magnetometer not working #58

Closed wangyendt closed 1 year ago

wangyendt commented 1 year ago

Dear phyphox team,

Thanks for sharing so nice and useful tool!

I found that in the magnetometer testing interface, even when I checked "Use raw magnetometer data" in the settings, the experiment still displayed the calibrated magnetometer data.

Then I digged more into the code. I noticed that if I change Sensor.TYPE_MAGNETIC_FIELD to Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, the experiment will display uncalibrated magnetometer sensor data. However, no matter whether I clicked "use raw magnetometer data" in the settings, it remains uncalibrated magnetometer sensor data.

image

I think there might be some bugs when I want to switch between calibrated mag data and uncalibrated mag data. Could you please check it?

I used phyphox v1.1.12 for testing. SHA: 08d1562df3f709d78f70947c62d8cd9388b135e5 Here are some information about my device if it helps. target sdk: 32

Thanks again!

Staacks commented 1 year ago

Damn, that is embarrassing. I noticed that there is a problem, but thought it was an issue of my new phone. Seems like I have broken that feature without noticing and did not properly check when it showed up on the new device...

At least it is an easy fix. Thanks for reporting!

wangyendt commented 1 year ago

This is an auto-sent e-mail.    I am sorry that currently I could not reply your e-mail. I will reply you as soon as possible.