Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)...
- Using emu->Extended Controls->Virtual Sensors->Move (not Rotate)
- kernel output
- (This is the last signal call before 60 seconds)
- ==== accevt_signal called
- dx=12540, dy=0, dx=0
- frq(count)=19
- dx=12540, dy=0, dx=0
- frq(count)=19
- dx=12540, dy=0, dx=0
- frq(count)=19
- dx=12540, dy=0, dx=0
- frq(count)=19
- ==== accevt_destroy called: 5
- ==== accevt_destroy called: 6
- ==== accevt_destroy called: 7
- ==== accevt_destroy called: 8
- --------------------------------------------
- test.c
- horizontal_x.dlt_x = 500;
- horizontal_x.dlt_y = 0;
- horizontal_x.dlt_z = 0;
- horizontal_x.frq = 15;
- horizontal_y.dlt_x = 1;
- horizontal_y.dlt_y = 500;
- horizontal_y.dlt_z = 1;
- horizontal_y.frq = 15;
- vertical.dlt_x = 1;
- vertical.dlt_y = 1;
- vertical.dlt_z = 50;
- vertical.frq = 15;
- both.dlt_x = 500;
- both.dlt_y = 500;
- both.dlt_z = 1;
- both.frq = 15;
- --------------------------------------------
- adb shell output
- generic_arm64:/data/misc # ./test
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- error: Invalid argument
- =======================================
- Using emu->Extended Controls->Virtual Sensors->Rotate
- (This is the last signal call before 60 seconds)
- ==== accevt_signal called
- dx=9089, dy=14147, dx=162
- frq(count)=19
- >>>> event triggered: 24
- dx=9089, dy=14147, dx=162
- frq(count)=19
- >>>> event triggered: 23
- dx=9089, dy=14147, dx=162
- frq(count)=19
- >>>> event triggered: 22
- dx=9089, dy=14147, dx=162
- frq(count)=19
- >>>> event triggered: 21
- (Note: there were many more triggers)
- --------------------------------------------
- test.c
- horizontal_x.dlt_x = 500;
- horizontal_x.dlt_y = 0;
- horizontal_x.dlt_z = 0;
- horizontal_x.frq = 15;
- horizontal_y.dlt_x = 1;
- horizontal_y.dlt_y = 500;
- horizontal_y.dlt_z = 1;
- horizontal_y.frq = 15;
- vertical.dlt_x = 1;
- vertical.dlt_y = 1;
- vertical.dlt_z = 50;
- vertical.frq = 15;
- both.dlt_x = 500;
- both.dlt_y = 500;
- both.dlt_z = 1;
- both.frq = 15;
- --------------------------------------------
- adb shell output
- generic_arm64:/data/misc # ./test
- 1984 detected a shake
- 1976 detected a shake
- 1972 detected a shake
- 1968 detected a shake
- 1983 detected a vertical shake
- 1979 detected a vertical shake
- 1975 detected a vertical shake
- 1971 detected a vertical shake
- 1967 detected a vertical shake
- 1982 detected a horizontal shake
- 1978 detected a horizontal shake
- 1974 detected a horizontal shake
- 1970 detected a horizontal shake
- 1981 detected a horizontal shake
- 1977 detected a horizontal shake
- 1973 detected a horizontal shake
- 1969 detected a horizontal shake
- 1965 detected a horizontal shake
- 1966 detected a horizontal shake
- 1980 detected a shake
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement