Accelerometer and Gyroscope puck.js Read the accelerometer and gyroscope of a puck.js. accXRaw accYRaw accZRaw accXCal accYCal accZCal gyrXRaw gyrYRaw gyrZRaw gyrXCal gyrYCal gyrZCal t t0 tout reset(); 0d echo(false); function directOut(s) { NRF.updateServices({ "6e400001-b5a3-f393-e0a9-e50e24dcca9e" : { "6e400003-b5a3-f393-e0a9-e50e24dcca9e" : { value : s, notify : true, }}}); } let t0 = Date.now(); Puck.on("accel", function(data) { let t = Math.round(Date.now() - t0); directOut(t +","+data.acc.x+","+data.acc.y+","+data.acc.z +","+data.gyro.x+","+data.gyro.y+","+data.gyro.z); }); Puck.accelOn(); 0d t accXRaw accYRaw accZRaw gyrXRaw gyrYRaw gyrZRaw tout accXCal tout accYCal tout accZCal tout gyrXCal tout gyrYCal tout gyrZCal t t0 t t0 tout accXRaw 0.00119751 accXCal accYRaw 0.00119751 accYCal accZRaw 0.00119751 accZCal gyrXRaw 0.000130495 gyrXCal gyrYRaw 0.000130495 gyrYCal gyrZRaw 0.000130495 gyrZCal tout accXCal accYCal accZCal gyrXCal gyrYCal gyrZCal