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

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:

主站蜘蛛池模板: 柘荣县| 岳阳县| 吴江市| 喀什市| 宜兰市| 白朗县| 眉山市| 遂宁市| 汉川市| 涡阳县| 丹阳市| 瑞丽市| 顺昌县| 安泽县| 聂拉木县| 柘荣县| 黔西县| 上杭县| 泸定县| 山西省| 正宁县| 哈尔滨市| 田阳县| 家居| 云梦县| 开远市| 翁源县| 出国| 澎湖县| 玉屏| 朝阳县| 蓬莱市| 宝丰县| 犍为县| 简阳市| 收藏| 黄龙县| 岳普湖县| 油尖旺区| 太保市| 得荣县|