AOSP 코드 파일 hardware/libhardware/include/hardware/sensors.h
을 참조 OEM 센서 라이브러리를 제공해야하여 제공된 ^) Btheta = (umsin (세타 : 은 (그 센서와 같은 식을 사용하여 생각 프레임 워크가 기대하는 데이터입니다. 드라이버 자체에서 오는 데이터는 이미이 형식으로되어 있거나 다른 것일 수 있습니다. 올바른 작업을 수행하는 것은 OEM HAL의 책임입니다.이 설명은 장치의 센서 라이브러리가 무엇인지 설명합니다. 반환.
/* * SENSOR_TYPE_GEOMAGNETIC_FIELD * trigger-mode: continuous * wake-up sensor: no * * All values are in micro-Tesla (uT) and measure the geomagnetic * field in the X, Y and Z axis. * * Returned values include calibration mechanisms such that the vector is * aligned with the magnetic declination and heading of the earth's * geomagnetic field. * * Magnetic Field sensors return sensor events for all 3 axes at a constant * rate defined by setDelay(). */
캔트 나는 그들이 자기장 벡터를 계산하는 방법을 정확한 소스 코드를 찾을? – user3056360