rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
178 stars 161 forks source link

compass is reverse in galaxy edge 7 #73

Open asafHorvitz opened 8 years ago

asafHorvitz commented 8 years ago

I have the same code running in samsung note 2 and samsung edge 7 for compass - in the note 2 its ok and in the edge 7 the compass its reversed, meaning 0 is 180...

I switch package to Plugin.Compass and its work OK in this package for both phones !!

dimitrijevic commented 7 years ago

Is this @JarleySoft 's Plugin.Compass? Best I can gather on android it uses fusion sensor readings by querying sensors using SensorManager.GetRotationMatrix(r, null, lastAccelerometer, lastMagnetometer); and SensorManager.GetOrientation(r, orientation); which is something I'm not familiar on platforms other than windows...if you'd like to help or know someone else I'll publicize my current Plugin.DeviceMotion fork which included such Inclinometer readings through MotionSensorType.Fusion and one could include Orientation and SimpleOrientation fusion sensor data and try and test it pretty much also the same way (those are the three fusion sensor windows can support on capable devices)...if you're interested shout me out. Is this the same issue as #98 ?