像挥动高尔夫球杆一样挥动 iPhone
我知道我必须使用 UIAccelerometer 来检测常规高尔夫挥杆中存在的角度。
我想到的最好的对应词是我想像使用任天堂 Wii 控件一样使用 iPhone。
是否有可能像高尔夫球杆一样挥动 iPhone,并能够确定:
是否大致准确挥杆(如果更像网球挥杆 = 投掷错误)
也许将iPhone记录的角度存储在“后挥杆”上。如果我在“后摆”上每秒存储五个值,然后检查这些值是否大致等于“前摆”。
- 我还需要确定摆动的力度,也许我可以在 iPhone 到达默认位置(开始摆动之前的起始位置)之前检查一下。我知道我无法使用 UIAccelerometer 计算两个位置之间的速度,但也许我可以用其他方式解决这个问题?
Apple 审核团队对此问题的回答
感谢您联系该应用程序 审核小组。苹果无法 向开发商提供预先批准 拟议的申请提交或 对申请的审查和评论 概念,包括商业模式。 也就是说,这个概念并不 违反准则;然而, 应用程序需要评估 确保实施 合规性。
就我个人而言,我认为这样的应用程序会被批准,但是如果您应该将设备扔到尽可能靠近某个位置的应用程序应该被拒绝。我是这样解释的。
不管怎样,我了解到我的问题,即摆动是否可能,通过使用带有高通滤波器和低通滤波器的加速度计绝对是可行的。
考虑周全:如果您打算开发具有相同概念的应用程序,如果被拒绝,请不要生气。
I understand that I have to use the UIAccelerometer to detect which angles that will exist in a regular golf swing.
The best equivalent that came to my mind is that I want to use the iPhone just like the Nintento Wii control.
Is it possible to swing the iPhone like a golf club and be able to decide:
Wheather it's a roughly accurate swing (if it's more like a tennis swing = throw error)
Perhaps store the angles the iphone registers on the "back swing". If I store five values each x second on the "back swing" and then check if these values are roughly equal to the "front swing".
- I also need to decide how hard the swing is, perhaps if I can check this a moment before the iphone reaches the default position (start position before starting the swing movement). I know that I can't calculate the speed between two positions with UIAccelerometer, but maybe I can solve this in some other way?
Answer from Apple Review Team on this question
Thank you for contacting the App
Review team. Apple is not able to
provide pre-approval to developers for
proposed application submissions or to
review and comment on application
concepts, including business models.
That said, the concept does not
violate the guidelines; however, the
app will need to be evaluated to
ensure the implementation is in
compliance.
Personally I think an app like this would be approved, but an app where you is supposed to throw you device as near as possible to a location should be disapproved. This is how I interpret this.
Anyway, I've learned that my question, which was if the swing was possible, is absolutely doable with the usage of the Accelerometer with a High pass fitler and a Low pass filter.
Have in consideration: If you are about to develop an app with the same concept, don't get angry if it gets rejected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
苹果很有可能不会让这样的应用程序进入应用程序商店。阅读人机界面指南:他们说不要鼓励用户做任何可能导致他们损坏设备的事情。当打高尔夫球时,我可以想象有人在某个地方放下他们的 iPhone,然后卡布卢伊......
There's a reasonable chance that Apple won't let an app like this into the app store. Read the human interface guidlines: they say to not encourage the user to do anything which might cause them to damage their device. And with doing a golf swing, I can imagine somebody somewhere letting go of their iPhone and then kablooie...