Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 744 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 744 Bytes

mobile tracking in 3d-space

#####read live sensor data via FILE and ADB set ADB logcat buffer (10MB):

adb logcat -G 10M

clear ADB buffer:

adb logcat -c

create fifo for file:

mkfifo pipe && exec 7<>pipe

ADB logcat forward to pipe:

adb logcat -s AV-SDK | grep --line-buffered MotionCapturing | sed -u s/\.\*MotionCapturing://g > pipe

#####read live sensor data via FILE and TCP/IP

  • use same comands above
nc -k -l 4000 > pipe 

#####data construction, which are calculated in the mobile device

String data = accelerometerValues + "," + magneticValues + "," + gyroscopeValues + ",:," + azimuth + "," + pitch + "," + roll;

========================