matrix-io / matrix-os

MATRIX OS Codebase
https://creator.matrix.one
GNU General Public License v3.0
75 stars 17 forks source link

accelerometer data comes through with gyro data, should come through when accelerometer is requested only. #57

Closed brianofrokk3r closed 7 years ago

brianofrokk3r commented 7 years ago

For example:

matrix.init('gyroscope', {}).then(function() {});

returns:

{ 
  yaw: 158.4182891845703,
  pitch: 1.6816062927246094,
  roll: -1.2669049501419067,
  accel_x: 0,
  accel_y: 0,
  accel_z: 0,
  gyro_x: 0,
  gyro_y: 0,
  gyro_z: 0,
  mag_x: 0,
  mag_y: 0,
  mag_z: 0,
  type: 'gyroscope' 
}

gyroscope should return:

{ 
  yaw: 158.4182891845703,
  pitch: 1.6816062927246094,
  roll: -1.2669049501419067
}
matrix.init('accelerometer', {}).then(function() {});

accelerometer should return:

{
  accel_x: 0,
  accel_y: 0,
  accel_z: 0
}
brianofrokk3r commented 7 years ago

@eighteyes resolved?