omarreis / FiremonkeySensorFusion

Augmented Reality w/ Delphi Firemonkey. Sensor fusion object ( accelerometer+magnetometer+GPS). returns phone attitude (Azimuth/Elevation/Roll)
28 stars 12 forks source link

Magnetic sensor #1

Closed Coldz0 closed 3 years ago

Coldz0 commented 4 years ago

magnetic sensor doesnt work, values x, y ,z keeps at 0 Tested in Delphi10.3.2 , Android 9

omarreis commented 4 years ago

Recent Android versions require apps to request permissions to use device sensors. This is not implemented in the sample at this time. May be the sensor permissions are not set. See https://github.com/omarreis/BoatAttitude/blob/master/fBoatAttitude2.pas for an example of how to request permissons using DelphiWorlds requester.

You can also set the app permissions manually on Android Config, for testing purposes

omarreis commented 4 years ago

Changed sample app code to include permissions request for Android