Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,489 Members 44,893 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to change a magnetometer Z axle outpu

Tip us?
 
casca
Old
#1  
Senior Member - OP
Thanks Meter 71
Posts: 1,088
Join Date: Oct 2006
Location: Lisboa
Default [Q] How to change a magnetometer Z axle outpu

Hello

I've recently purchased a phone and I was wondering where does a simple compass application get the x,y and z values from the magnetometer (magnetic sensor).

I'm trying to find out where would the corresponding files be and if there is any way to change them, since the Z axle is inverted on the phone... it's a code fault, but if it can be manually corrected then it will be of great help when using gps/compass based apps.

I'm sorry if this isn't the correct place but since it surely invloves coding, i assumed it should be here.

thank you
"Each device will only be as good as the developer(s) and community supporting it"

Current devices:
THL T100S / Samsung Galaxy S3

Previous devices:
Sony Xperia P+Samsung Galaxy Young/HTC One X/Huawei Ideos X5 U8800/Nexus S/Htc Desire/ZTE Blade/Htc Legend/Hero/Tytn;Qtek 9100/9090;Nokia E52/5800XM/N82/6680/6630/6600/3330/3210;Panasonic GD50;Alcatel One Touch Easy
 
casca
Old
#2  
Senior Member - OP
Thanks Meter 71
Posts: 1,088
Join Date: Oct 2006
Location: Lisboa
If someone can help...i have made a video explaining the problem

Http://youtu.be/GHTRJAbZFpA

Sent from my thl T100S using XDA Free mobile app
"Each device will only be as good as the developer(s) and community supporting it"

Current devices:
THL T100S / Samsung Galaxy S3

Previous devices:
Sony Xperia P+Samsung Galaxy Young/HTC One X/Huawei Ideos X5 U8800/Nexus S/Htc Desire/ZTE Blade/Htc Legend/Hero/Tytn;Qtek 9100/9090;Nokia E52/5800XM/N82/6680/6630/6600/3330/3210;Panasonic GD50;Alcatel One Touch Easy
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes