http://itunes.apple.com/us/app/sensor-d ... 19802?mt=8
This app transmits sensor data from the phone to FreePIE using UDP transmissions so your phone will need to be connected by WiFi. Then simply go to this screen and configure Sensor Data for Unicast and set the IP address to the address of your PC.
Then launch FreePIE, execute an iPhone script, and hit Start Stream on the phone.
The script variables, "iPhone", "iPad", or "iPod" are all available and are interchangeable. Here is an example script to enable mouse emulation with the iPhone.
Code: Select all
if starting:
iPhone.continuousYawMode = True
yaw = math.degrees(iPhone.yaw)
pitch = math.degrees(iPhone.pitch)
mouse.deltaX = filters.delta(yaw * 10)
mouse.deltaY = filters.delta(pitch * 10)
NOTE: Unfortunately, there is a glitch in the iPhone that diminishes its effectiveness as a head tracker. A couple of times a minute it will enter into some sort of wireless hardware contention state and the data rate will drop to about 10Hz for a few seconds. No packets are lost but the latency is clearly noticeable when using the device as a headtracker. The iPod Touch does not seem to have this issue and I have not tried the iPad.
(Edit: Some users have reported that they don't experience any feed lag with the iPhone. Result may vary. It is currently unclear to me if the problem is related to specific hardware version, iOS version, or configuration.)
[youtube-hd]https://www.youtube.com/watch?v=gQS2Tdo9ZVM[/youtube-hd]