Advertisement
Guest User

w4118_eventtest_20171016

a guest
Oct 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1.  
  2. Ran emulator under two conditions while shaking the entire 60 seconds. The first condition was using the "Move" option in the emulator and only shaking in the x direction (thus dy,dz = 0). The second condition was using the "rotate" option and only rotation in the yaw direction (back and forth)...
  3.  
  4.  
  5. Using emu->Extended Controls->Virtual Sensors->Move (not Rotate)
  6. kernel output
  7. (This is the last signal call before 60 seconds)
  8. ==== accevt_signal called
  9. dx=12540, dy=0, dx=0
  10. frq(count)=19
  11. dx=12540, dy=0, dx=0
  12. frq(count)=19
  13. dx=12540, dy=0, dx=0
  14. frq(count)=19
  15. dx=12540, dy=0, dx=0
  16. frq(count)=19
  17. ==== accevt_destroy called: 5
  18. ==== accevt_destroy called: 6
  19. ==== accevt_destroy called: 7
  20. ==== accevt_destroy called: 8
  21. --------------------------------------------
  22. test.c
  23. horizontal_x.dlt_x = 500;
  24. horizontal_x.dlt_y = 0;
  25. horizontal_x.dlt_z = 0;
  26. horizontal_x.frq = 15;
  27.  
  28. horizontal_y.dlt_x = 1;
  29. horizontal_y.dlt_y = 500;
  30. horizontal_y.dlt_z = 1;
  31. horizontal_y.frq = 15;
  32.  
  33. vertical.dlt_x = 1;
  34. vertical.dlt_y = 1;
  35. vertical.dlt_z = 50;
  36. vertical.frq = 15;
  37.  
  38. both.dlt_x = 500;
  39. both.dlt_y = 500;
  40. both.dlt_z = 1;
  41. both.frq = 15;
  42. --------------------------------------------
  43. adb shell output
  44. generic_arm64:/data/misc # ./test
  45. error: Invalid argument
  46. error: Invalid argument
  47. error: Invalid argument
  48. error: Invalid argument
  49. error: Invalid argument
  50. error: Invalid argument
  51. error: Invalid argument
  52. error: Invalid argument
  53. error: Invalid argument
  54. error: Invalid argument
  55. error: Invalid argument
  56. error: Invalid argument
  57. error: Invalid argument
  58. error: Invalid argument
  59. error: Invalid argument
  60. error: Invalid argument
  61. error: Invalid argument
  62. error: Invalid argument
  63. error: Invalid argument
  64. error: Invalid argument
  65.  
  66. =======================================
  67.  
  68. Using emu->Extended Controls->Virtual Sensors->Rotate
  69. (This is the last signal call before 60 seconds)
  70. ==== accevt_signal called
  71. dx=9089, dy=14147, dx=162
  72. frq(count)=19
  73. >>>> event triggered: 24
  74. dx=9089, dy=14147, dx=162
  75. frq(count)=19
  76. >>>> event triggered: 23
  77. dx=9089, dy=14147, dx=162
  78. frq(count)=19
  79. >>>> event triggered: 22
  80. dx=9089, dy=14147, dx=162
  81. frq(count)=19
  82. >>>> event triggered: 21
  83. (Note: there were many more triggers)
  84. --------------------------------------------
  85. test.c
  86. horizontal_x.dlt_x = 500;
  87. horizontal_x.dlt_y = 0;
  88. horizontal_x.dlt_z = 0;
  89. horizontal_x.frq = 15;
  90.  
  91. horizontal_y.dlt_x = 1;
  92. horizontal_y.dlt_y = 500;
  93. horizontal_y.dlt_z = 1;
  94. horizontal_y.frq = 15;
  95.  
  96. vertical.dlt_x = 1;
  97. vertical.dlt_y = 1;
  98. vertical.dlt_z = 50;
  99. vertical.frq = 15;
  100.  
  101. both.dlt_x = 500;
  102. both.dlt_y = 500;
  103. both.dlt_z = 1;
  104. both.frq = 15;
  105. --------------------------------------------
  106. adb shell output
  107. generic_arm64:/data/misc # ./test
  108. 1984 detected a shake
  109. 1976 detected a shake
  110. 1972 detected a shake
  111. 1968 detected a shake
  112. 1983 detected a vertical shake
  113. 1979 detected a vertical shake
  114. 1975 detected a vertical shake
  115. 1971 detected a vertical shake
  116. 1967 detected a vertical shake
  117. 1982 detected a horizontal shake
  118. 1978 detected a horizontal shake
  119. 1974 detected a horizontal shake
  120. 1970 detected a horizontal shake
  121. 1981 detected a horizontal shake
  122. 1977 detected a horizontal shake
  123. 1973 detected a horizontal shake
  124. 1969 detected a horizontal shake
  125. 1965 detected a horizontal shake
  126. 1966 detected a horizontal shake
  127. 1980 detected a shake
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement