使用接近传感器测量从iPhone到物体的距离 [英] Measure distance from an iPhone to an Object using proximity sensor

查看:60
本文介绍了使用接近传感器测量从iPhone到物体的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了许多有关此主题的论坛,但仍未找到确切答案.iPhone的接近传感器是仅用于打开或关闭显示屏的触发器,还是可以使传感器与物体之间保持一定距离?

I have read many Forums on this topic but I still haven't found an exact answer. Is the iPhone's proximity sensor only a trigger that turns the display on or off or can one get a distance from the sensor to an object?

谢谢!

推荐答案

接近传感器的精度不足以提供距离,它基本上是一个光传感器...

The proximity sensor won't be precise enough to give you distances, it's basically a light sensor...

这篇关于使用接近传感器测量从iPhone到物体的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆