AnsweredAssumed Answered

GetSensor( "magneticField" ) measures what ?

Question asked by rouelf on May 25, 2018
Latest reply on May 27, 2018 by rouelf

To Filemaker, the sensor values for GetSensor( "magneticField" ) is providing actually what ?????. The Magnetometers should be measuring, in micro Tesla, the x, y, z components of the Earth magnetic field, but that is not what we are getting. If we change the attitude of an iPhone, that is (pitch, roll, yaw), if we point the “top” of the iPhone, the part where the camera is located, in different directions, up, down, right, left, or any direction, the x, y, z components of the Magnetometers readings will change drastically, while the actual magnitude (square root of the sum of the squares of the x, y, z components) is constant. The z component from the GetSensor( "magneticField" ) does not seem to vary much when changing the attitude, which is not right, and is way, way to high for my location in Silicon Valley.  So what is the GetSensor( "magneticField" ) function actually measuring ???   The actual x, y, z components of the Earth magnetic field is the preferred results. We know is doable, there are lots of iOS apps that provide the measurements.

 

On another note, the GetSensor( “accelerationByUser” ) measurements are OK, but would prefer the actual Accelerometer readings in units of g, and calculate my own “accelerationByUser”. Yeah, Supposedly, we can calculate the Accelerometer readings by adding the x, y, z components of the GetSensor( “accelerationByUser” ) and GetSensor( “accelerationByGravity” ), and dividing the result by 9.8067 meters per second squared. But would prefer the actual Accelerometer readings in units of g.

Outcomes