Sensor Batchingã®æ¦è¦ Android 4.4ã§ã¯ã»ã³ãµã¼ã¸ã®ã¢ã¯ã»ã¹ããããå¦çãããã¨ã§æ¶è²»é»åãããã«æãã¾ãããã»ã³ãµã¼ããã(Sensor batching)ã§ã¯ã·ã¹ãã ãã¹ãªã¼ããã¦ãã¦ãï¼ç»é¢ããªãã§ãï¼ã»ã³ãµã¼ã¤ãã³ããåå¾ã§ããããä½ç½®æ å ±ãå©ç¨ãããªã©ä½æ¶è²»é»åã»é·æéå©ç¨ã¨ããã¦ã¼ã¹ã±ã¼ã¹ã«æé©ã§ãã ãããå¦çãå¿ è¦ãªçç± ããããå®è¡ãããã¾ã§ã®éã¯ã»ã³ãµã¼ã¤ãã³ããéç¥ãããªãããCPUã¯ä½æ¶è²»é»åãªã¢ã¤ãã«ç¶æ /ãµã¹ãã³ãç¶æ ãç¶æã§ãã¾ãããããã®å®è¡ééã¯ä»»æã®è¨å®ãå¯è½ã§ãããã¡ãããªã¢ã«ã¿ã¤ã ãªã»ã³ãµã¼å¤ãã»ããå ´åã¯ãã¾ã¾ã§éãã§ããã»ã³ãµã¼ã®ãããå¦çã¯ãã£ãããã¹ãä½ç½®è¿½è·¡ãç£è¦ãªã©ã«åãã¦ãããã·ã¹ãã ã¹ãªã¼ãç¶æ ãã¹ã¯ãªã¼ã³ãªãã§ãå©ç¨ã§ããå©ç¹ãããã¾ãããã¼ãã¦ã§ã¢å¯¾å¿ãå¿ è¦ãªãããNexus 5ãªã©æ°ãã端æ«ã§å©ç¨ã§ãã¾ã
ã³ã³ãã¥ã¼ã¿ãã²ã¼ã 端æ«ãè ãæã®åãã§æä½ã§ããã¢ã¼ã ãã³ãç¶ã®ã¬ã¸ã§ãããMYOãã®äºç´è²©å£²ãã¹ã¿ã¼ããããä¾¡æ ¼ã¯149ãã«ã§åºè·ã¯å¹´å ã®è¦è¾¼ã¿ã ä¸è é¨ã«å·»ãã¦æ±ºããããåä½ããããã¨ã§ãä¾ãã°Macä¸ã®iTunesã§é³æ¥½ãåçããããWindows PCã§ä½æ²ãããã§ããã大ã¾ããªåçã¯ãè ã®çèã®åããã¢ã¼ã ãã³ãã§é»æ°çã«ã¨ããã¦å½ä»¤ã«å¤æãã対象ã¨ãªã端æ«ã«Bluetoothã§éä¿¡ãããMicrosoftã®Kinectã¨åããããªãã¼ã«ã ããKinectã®ãããªã«ã¡ã©ãå¿ è¦ã¨ããªãã®ã§ãæä½å¯¾è±¡ã®å¹ ãåºãã 販売å ã¯2012å¹´åµæ¥ã®Thalmic Labsãç´¹ä»åç»ãè¦ãããäºç´ãã¼ã¸ã¯ãã¡ãã
ãã¦ãæ¨æ¥ã®ç¶ããä»æ¥ã¯ã»ã³ãµã¼ããè¦ã¦ã¿ãã 7.3 Sensor ã»ã»ã³ãµã¼ããã¤ã¹ã¯ãã¹ã¦å®è£ ãããªãã¦ãè¯ãã ã»ã»ã³ãµã¼ãæè¼ããå¤é¨éçºè åãã®APIã«å¯¾å¿ããã®ã§ããã°ãAndroid SDKã®ããã¥ã¡ã³ãã«ãããã£ã¦APIãå®è£ ããªããã°ãªããªãã ãã¨ãã° android.content.pm.PackageManager classãã¨ã«ã»ã³ãµã¼ã®æç¡ãæ£ç¢ºã«éç¥ããã㨠SensorManager.getSensorList()ãããã¯é¡ä¼¼ã®æ¹æ³ã§ãµãã¼ããã¦ããã»ã³ãµã¼ç¨®é¡ã®ãªã¹ããéç¥ããã㨠ä»ã®ã»ã³ãµã¼APIã«å¯¾ãã¦å¦¥å½ãªåä½ãè¡ãã㨠ãªã©ãªã©ã詳細ã¯Android SDKããã¥ã¡ã³ããåç § ã»ããã¤ãã®ã»ã³ãµã¼ã¯åæããã¦åºåããããï¼ãã¨ãã°ãæ¹åã»ã³ãµã¼ãç´ç·å é度è¨ãªã©ï¼ ã»Android 2.3ã®Sensor APIã§ã¯ãStreaming Dat
ã¦ãã¼ã¯ãªé«åº¦è¨ã¨ãã¦ã®æ©è½ æ©æ°ã®ã«ã¦ã³ãã®ä»ãGPSã¨é£åãã¦æ©ããã«ã¼ãã®æ¨é«ã®å¤åãè¨é²ãã¦ããã¾ãã ã¾ãããã®æ¨é«ãã©ããããã®é«ããã家ã»ãã³ã·ã§ã³ã»ãµã³ã·ã£ã¤ã³60ã»ã¹ã«ã¤ããªã¼ã»å¯å£«å±±ã¨æ¯ã¹ãããã¦ãã¼ã¯ãªæ©è½ä»ãã å±±ç»ãã趣å³ã®æ¹ã¯ãç»å±±ä¸ã«ç¾å¨ä½ç½®ã®ç¢ºèªãããæãªã©ã«æ´»èºãã¦ããããã§ãã ãã¥ã¼ããªãã¹ã³ããã¨ä¸ç·ã«ã¬ããã¦ã©ã¼ã¯ å®éã«ã¢ããªã使ã£ã¦æ©ãã¦ã¿ã¾ãããã¢ããªèµ·åå¾ãã¡ãã¥ã¼âãè¨é²éå§ããã¿ããããã¨æ©æ°ã®ã«ã¦ã³ããã¹ã¿ã¼ããããã¹ã³ãããä¸ç·ã«æ©ãå§ãã¾ããã¦ãã¦ãã¨æ©ãã¦ãã°ã©ãã£ãã¯ããªãã¨ãããããããã§ãã è¨é²ãåæ¢ããã«ã¯ã¡ãã¥ã¼ãã¿ã³âãè¨é²åæ¢ããã¿ãããã¾ããç´50åã§1689æ©ãæéãã¨ã®æ¨é«ã®å¤åãã¿ãã¨ãã¹ã¿ã¼ãä½ç½®ãããã¨é«å°ã«ãã£ããã¨ããããã¾ããæ®æ®µãããã¾ã§æèãããã¨ãããã¾ããã§ããããæå¤ã¨ç»ã£ããä¸ã£ãã
Macbookã«Windows7ãRCãå ¥ãããã¨ããã ãã¼å ¥åå¹ããã«å ã«é²ã¿ã¾ããããã¨ã»ã»ããã Androidã§ã»ã³ãµã¼ã¾ããã調ã¹ã¦ã¿ãã主ã«JNIã®ãããã é¢ä¿ãããã¡ã¤ã«ã¯ä»¥ä¸ã®ã¨ãã /frameworks/base/core/java/android/hardware/Sensor*.java /frameworks/base/core/jni/android_hardware_SensorManager.cpp /hardware/libhardware/hardware.c æµãã¨ãã¦ã¯ãããªæãã SensorManagerã®ã³ã³ã¹ãã©ã¯ã¿ã§sensor_module_init()ãå¼ã°ããã ããã¤ã¯android_hardware_SensorManager.cppã®ä¸ã«å®è£ ããã¦ããã ãã®ä¸ã§ã»ã³ãµã¼ã¢ã¸ã¥ã¼ã«ã®Shared Libraryãå¼ã³åºãã¦ç»
ã¢ã¯ã»ãã¬ã¨ã¯ï¼ ã¢ã¯ã»ãã¬ã¨ã¯ãå é度ã観å¯ããã¾ãä¿åããããã®ãã¼ã«ã§ããèµ·åããã¨å»ã ã¨å¤åããå é度ãè¦ããã¨ãåºæ¥ã¾ãã å é度ãä¿åãããå ´åã¯MENUã®è¨é²ãã¿ã³ï¼æ¥ã®ä¸¸ãã¿ã³ï¼ãæ¼ãã¦ãã ãããSDã«ã¼ãã®ä»¥ä¸ã«ç¤ºããã©ã«ãã¸èªåçã«æ°å¤ãã¡ã¤ã«ã«ãã°ãåºåãã¾ãã /accelogger/ ã©ããã£ã¦éã¶ã®ï¼ ã¨ã¬ãã¼ã¿ã®æ大å é度ã£ã¦ã©ãããããç¥ã£ã¦ãã¾ããï¼ æ©ãã¦ããã¨ãæå ã«æããå é度ã£ã¦ã©ãããããç¥ã£ã¦ãã¾ããï¼ æ©ãã¦ããã¨ããèªè»¢è»ãããã§ããã¨ããè¸ã£ã¦ããã¨ãããã®ã¢ã¼ã·ã§ã³ã¯ã©ããããã®å¨æ³¢æ°ãç¥ã£ã¦ãã¾ããï¼ ãããã®çåã解決ãã¾ãï¼ ä½ãç»é¢ã«è¡¨ç¤ºã§ããã®ï¼ 次ã®è¦ç´ ã表示ããããã¨ãåºæ¥ã¾ãããããã¯è¨å®ç»é¢ã§è¿½å /åé¤ã§ãã¾ãã 波形 波形ã®è»¸ ã¹ãã¯ãã« ã¦ã©ã¼ã¿ã¼ãã©ã¼ã«ãã£ã¹ãã¬ã¼ï¼æ»è¡¨ç¤ºï¼ æ°å¤è¡¨ç¤º è£å©æ å ± ã¬ã³ã¼ãã£ã³ã°æ
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}