官术网_书友最值得收藏!

Motion, position, and environmental sensors

The Android platform supports mainly three broad categories of sensors: the motion, position, and environment-based sensors. This categorization is done based on the type of physical quantity detected and measured by the sensors.

Motion sensors

Motion sensors are responsible for measuring any kind of force that could potentially create motion in the xy, and z axes of the phone. The motion could be either a linear or angular movement in any direction. This category includes accelerometers, gravity, gyroscope, and rotational vector sensors. Most of these sensors will have values in the x, y, and z axes, and the rotational vector will especially have extra value in the fourth axis, which is the scalar component of the rotation vector.

The following table summarizes the motion sensor usage, types, and power consumption:

Position sensors

Position sensors are used to measure the physical position of the phone in the world's frame of reference. For example, you can use the geomagnetic field sensor in combination with the accelerometer to determine a device's position relative to the magnetic North Pole. You can use the orientation sensor to determine the device's position in your application's frame of reference. Position sensors also support values in the x,y, and z axes.

The following table summarizes the position sensor's usage, types, and power consumption:

Environmental sensors

Environment sensors are responsible for measuring environmental properties, such as temperature, relative humidity, light, and air pressure near the phone. Unlike motion and position sensors, which give sensor values multi-dimensional arrays, the environment sensors report single sensor values.

The following table summarizes the environment sensor's usage, types, and power consumption:

主站蜘蛛池模板: 沂水县| 鸡泽县| 惠东县| 额敏县| 南康市| 壶关县| 奇台县| 永胜县| 江门市| 连南| 潞西市| 合川市| 余江县| 柘城县| 徐州市| 蓝田县| 固镇县| 开封县| 浦北县| 迁西县| 凤阳县| 山东省| 宜城市| 临江市| 台前县| 海伦市| 韶山市| 连云港市| 桦甸市| 海淀区| 泸西县| 库伦旗| 策勒县| 汶上县| 法库县| 家居| 舞阳县| 商南县| 昌图县| 崇明县| 冷水江市|