Home | History | Annotate | Download | only in javascript

Lines Matching refs:sensorObj

29 var sensorObj = require('jsupm_mpu9150');
32 var sensor = new sensorObj.MPU9250();
37 var x = new sensorObj.new_floatp();
38 var y = new sensorObj.new_floatp();
39 var z = new sensorObj.new_floatp();
47 console.log("Accelerometer: AX: " + sensorObj.floatp_value(x) +
48 " AY: " + sensorObj.floatp_value(y) +
49 " AZ: " + sensorObj.floatp_value(z));
52 console.log("Gyroscope: GX: " + sensorObj.floatp_value(x) +
53 " AY: " + sensorObj.floatp_value(y) +
54 " AZ: " + sensorObj.floatp_value(z));
57 console.log("Magnetometer: MX: " + sensorObj.floatp_value(x) +
58 " MY: " + sensorObj.floatp_value(y) +
59 " MZ: " + sensorObj.floatp_value(z));
71 sensorObj.cleanUp();
72 sensorObj = null;