Closed brianofrokk3r closed 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:
gyroscope
{ yaw: 158.4182891845703, pitch: 1.6816062927246094, roll: -1.2669049501419067 }
matrix.init('accelerometer', {}).then(function() {});
accelerometer should return:
accelerometer
{ accel_x: 0, accel_y: 0, accel_z: 0 }
@eighteyes resolved?
For example:
returns:
gyroscope
should return:accelerometer
should return: