Difference in how sensor events are reported for Gyroscope in android for Nexus 5 and Galaxy S6 -


i trying record , plot gyroscope sensor readings (not calculating rotation etc. raw values) using following code:

private sensoreventlistener onsensorchange = new sensoreventlistener() {          @override             public void onaccuracychanged(sensor arg0, int arg1) {             // todo auto-generated method stub                 }             @override             synchronized public void onsensorchanged(sensorevent event) {                 gyro_printwriter.println(event.timestamp + " " + event.values[0] + " " + event.values[1] + " " + event.values[2]);             }     }; 

in nexus 5, resulting values this:

  • 1939677609042,0.0023345947,-0.0028686523,-0.0026550293
  • 61939682644443,0.0022277832,-0.0027770996,-0.0015716553
  • 61939687679843,0.001373291,-0.0016937256,-6.1035156e-4
  • 61939692715244,0.002456665,-7.324219e-4,-6.1035156e-4
  • 61939697750644,0.00340271,-7.324219e-4,-7.4768066e-4
  • 61939702786044,0.0032348633,-0.0010528564,-0.0016784668
  • 61939707821445,0.0025024414,-0.0030517578,-0.0018463135
  • 61939712856845,0.0035858154,-0.004135132,-0.0025482178
  • 61939717892246,0.004257202,-0.0048065186,-0.0016784668
  • 61939722927646,0.00340271,-0.0039367676,-0.0016784668
  • 61939727963046,0.0031585693,-0.0037078857,-0.0019073486
  • 61939732998447,0.0025634766,-0.0028686523,-0.002746582
  • 61939738033847,0.00340271,-0.0031280518,-0.0024871826
  • 61939743069248,0.00340271,-0.0036773682,-0.0019378662
  • 61939748104648,0.00340271,-0.0028686523,-0.002456665
  • 61939753140048,0.00340271,-0.0025787354,-0.0016784668
  • 61939758175449,0.0037078857,-0.0018005371,-0.0013580322

while galaxy s6, under similar conditions, values like:

  • 2461171679744777,0.0,0.0,-0.0010652645
  • 2461171684399892,0.0010652645,-0.0010652645,0.0
  • 2461171689148732,0.0,0.0,0.0
  • 2461171693809039,-0.0010652645,-0.0010652645,0.0
  • 2461171698475448,-0.002130529,0.0,0.0
  • 2461171703225670,-0.0010652645,0.0,0.0
  • 2461171707969655,0.0,0.0,0.0010652645
  • 2461171712767168,-0.0010652645,0.0,0.0010652645
  • 2461171717596939,0.0,-0.0010652645,0.0010652645
  • 2461171722432499,0.0,0.0,0.0010652645
  • 2461171727334171,0.0,0.0010652645,0.0
  • 2461171732191014,0.0,0.0,0.0
  • 2461171737070741,0.0,0.0,0.0010652645
  • 2461171741985413,0.0,0.0,0.0
  • 2461171746881334,0.0010652645,-0.0010652645,0.0
  • 2461171751777858,0.0,0.0,0.0

as can see, there lots of 0 values in gyroscope readings galaxy s6 when compared nexus 5 under similar conditions. not expect them have same values when plotted, these values should show similar pattern. galaxy s6 has mpu6500 while nexus 5 has mpu6515 gyroscope sensors invensense. question is, have different motion sensors or need post processing on values reported galaxy s6?


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -