`

【翻译】(88)传感器

 
阅读更多

【翻译】(88)传感器

 

see

http://developer.android.com/guide/topics/sensors/index.html

 

原文见

http://developer.android.com/guide/topics/sensors/index.html

 

-------------------------------

 

Sensors

 

传感器

 

-------------------------------

 

Topics

 

主题

 

Sensors Overview 传感器概览

Motion Sensors 动作(注:运动)传感器

Position Sensors 位置传感器

Environment Sensors 环境传感器

 

Key classes and interfaces 

 

关键类与接口

 

Sensor

SensorEvent

SensorManager

SensorEventListener

 

Related samples

 

相关示例

 

Accelerometer Play 加速计游戏

API Demos (OS - RotationVectorDemo) API演示(操作系统-旋转向量演示)

API Demos (OS - Sensors) API演示(操作系统-传感器)

 

-------------------------------

 

Most Android-powered devices have built-in sensors that measure motion, orientation, and various environmental conditions. These sensors are capable of providing raw data with high precision and accuracy, and are useful if you want to monitor three-dimensional device movement or positioning, or you want to monitor changes in the ambient environment near a device. For example, a game might track readings from a device's gravity sensor to infer complex user gestures and motions, such as tilt, shake, rotation, or swing. Likewise, a weather application might use a device's temperature sensor and humidity sensor to calculate and report the dewpoint, or a travel application might use the geomagnetic field sensor and accelerometer to report a compass bearing.

 

大多数基于Android的设备拥有测量动作、方向和各种环境条件的内置传感器。这些传感器能够提供带高精度和准确性的原始数据,并且有帮助如果你想监测三维设备移动或定位,或者你想监测设备附近周围环境的改变。例如,一个游戏可能跟踪设备的重力感应器的读取以推断用户手势和动作,诸如倾斜、摇动、旋转、或摆动(注:挥动)。同样,一个天气应用程序可能使用一个设备的温度传感器和湿度传感器以计算和报告露点(注:固定气压下结露的温度,用于判断水汽含量),或者一个旅游(注:出行)应用程序可能使用地磁场传感器和加速计来报告一个罗盘方向角(注:方向角的一种,见维基的介绍http://zh.wikipedia.org/zh/%E6%96%B9%E4%BD%8D%E8%A7%92)。

 

The Android platform supports three broad categories of sensors:

 

Android平台支持三种传感器的广泛(注:广义)分类:

 

* Motion sensors

 

* 动作传感器

 

These sensors measure acceleration forces and rotational forces along three axes. This category includes accelerometers, gravity sensors, gyroscopes, and rotational vector sensors.

 

这些传感器测量沿三个轴的加速度力(注:这里可能是指位移造成的力分量)和旋转力(注:这里可能是指自转造成的力分量)。这个分类包括加速计、重力传感器(注:也简称G-sensor,特指线加速度传感器)、陀螺仪,以及旋转向量传感器(注:可能特指角加速度传感器)。

 

* Environmental sensors

 

* 环境传感器

 

These sensors measure various environmental parameters, such as ambient air temperature and pressure, illumination, and humidity. This category includes barometers, photometers, and thermometers.

 

这些传感器测量各种环境参数,诸如环境大气温度和压强,照度和湿度。这个分类包括气压计、光度计,和温度计。

 

* Position sensors

 

* 位置传感器

 

These sensors measure the physical position of a device. This category includes orientation sensors and magnetometers.

 

这些传感器测量设备的物理位置。这个分类包括方向传感器和磁强计。

 

To access these sensors, you can use the Android sensor framework. The sensor framework provides several classes and interfaces that help you perform a wide variety of sensor-related tasks. To learn more about the framework and the sensors that are supported on the Android system, read the following documents:

 

为了访问这些传感器,你可以使用Android传感器框架。传感器框架提供几个类和接口,它们帮助你执行广泛种类的传感器相关任务。要想知道关于该框架和在Android系统上支持的传感器的更多信息,请阅读以下文档:

 

Sensors Overview

 

传感器概览

 

Learn how to list the sensors that are on a device, set up sensor event listeners, and acquire sensor data. Also learn best practices for accessing and using sensors.

 

学习如何列举设备上的传感器,配置传感器事件监听器,以及获取传感器数据。还学习访问和使用传感器的最佳实践。

 

Motion Sensors

 

动作传感器

 

Learn how to use the sensors that provide acceleration data, such as the accelerometer, gravity sensor, and linear acceleration sensor. Also learn how to use the sensors that provide rotational data, such as gyroscopes and rotational vector sensors.

 

学习如何使用提供加速度数据的传感器,诸如加速计、重力感应器,以及线性加速度感应器。还学习如何使用提供旋转数据的传感器,诸如陀螺仪和旋转向量传感器。

 

Position Sensors

 

位置传感器

 

Learn how to use the sensors that provide orientation and compass data, such as the orientation sensor and the geomagnetic field sensor.

 

学习如何使用提供方向和罗盘数据的传感器,诸如方向传感器和地磁场传感器。

 

Environment Sensors

 

环境传感器

 

Learn how to use the sensors that provide environmental data, such as the light, humidity, pressure, temperature, and proximity sensors.

 

学习如何使用提供环境数据的传感器,诸如光照、湿度、压力(注:这里的压力传感器是用来测量液体与气体的压强)、温度、以及接近(注:通过电磁感应在非接触下检测对象)传感器。

 

Except as noted, this content is licensed under Apache 2.0. For details and restrictions, see the Content License.

 

除特别说明外,本文在Apache 2.0下许可。细节和限制请参考内容许可证。

 

Android 4.0 r1 - 09 May 2012 23:46

 

-------------------------------

 

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

 

此页部分内容,是基于Android开源项目所创建和共享的工作,并且根据知识共享2.5署名许可证描述的条款来使用的修改版。

 

(本人翻译质量欠佳,请以官方最新内容为准,或者参考其它翻译版本:

* ソフトウェア技術ドキュメントを勝手に翻訳

http://www.techdoctranslator.com/android

* 微风的网络日志

http://leybreeze.com/blog/

* 农民伯伯

http://www.cnblogs.com/over140/

* Android中文翻译组

http://androidbox.sinaapp.com/


分享到:
评论

相关推荐

    MES标准(S95、S88、白皮书).rar

    例如,级别0涵盖了单个设备,如传感器和执行器,级别1负责协调这些设备,而级别2则管理更复杂的工艺步骤。S88的目标是促进跨系统的互操作性和标准化。 S95,即ISA-95,是一个国际标准,用于企业与制造系统的集成。...

    mega48/88/168中文

    《修正版》可能意味着这份文档已经过官方或社区的更新,修复了原英文版中的翻译错误,或者添加了更适合中国开发者阅读的注解和示例,使得学习过程更加顺畅。 ATmega系列基于 AVR RISC(Reduced Instruction Set ...

    190107082030_%e9%99%88%e6%96%87%e9%9f%ac_%e4%bb%bb%e5%8a%a1%e4%b9%a6%e9%99%84%e4%bb%b6 2.docx

    - **英文资料或英文论文翻译**:完成一篇不少于3000汉字的英文资料或论文翻译。 #### 6. 参考文献 提供了多篇关于基于STM32的环境检测管理系统设计的相关参考文献,如《基于STM32智能家居控制系统的设计》、《基于...

    PIC16F883/884/886/887中文数据手册

    发布的《PIC16F882/883/884/886/887数据手册》详细介绍了基于纳瓦技术的28/40/44引脚增强型闪存8位CMOS单片机(以下简称“PIC16F88x系列”)。这一系列单片机在工业控制、汽车电子等领域有着广泛的应用。 #### 二...

    计步器的实现

    android计步器的实现,自定义的一个弧形进度条,记步通过手机的传感器来实现,也就是说不支持传感器的机子(应该很老的了吧)就没有效果。看看效果图: 这里写图片描述这里写图片描述 自定义View public class ...

    PIC单片机中文数据手册

    2. **文档免责声明**: Microchip及其相关公司不对翻译中可能出现的任何错误负责,并且强调用户在使用过程中需要自行承担相应的风险。此外,对于将Microchip器件用于生命维持等特殊应用的情况,用户需承担全部责任。 ...

    STM32F10xxx参考手册

    7.5 GPIO 和AFIO寄存器地址映象 88 8 中断和事件 89 8.1 嵌套向量中断控制器 89 8.1.1 系统嘀嗒(SysTick)校准值寄存器 89 8.1.2 中断和异常向量 89 8.2 外部中断/事件控制器(EXTI) 91 8.2.1 主要特性 91 8.2.2 框图 ...

    Android程序设计基础

     本书由张波、高朝勤、杨越和徐红霞等翻译,在翻译过程中得到了人民邮电出版社图灵公司编辑的热心帮助,在此一并致谢。由于译者的知识水平有限,加之时间比较仓促,文中难免会出现一些疏漏,恳请广大读者给予批评...

    计算机词汇整理,中英文对照。

    88. **walkthrough** - 代码走查,团队成员一起审查代码以找出问题或改进机会的过程。 89. **wontfix** - 不修复,标记为不会解决的问题,通常因为资源限制或低优先级。 这些词汇构成了计算机科学的基础,了解它们...

Global site tag (gtag.js) - Google Analytics