Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodeimu

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeimu - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nodeimu",
"version": "1.0.0",
"version": "1.0.1",
"description": "Native addon for accessing IMU sensors using RTIMULib2",

@@ -5,0 +5,0 @@ "license": "BSD-2-Clause-FreeBSD",

@@ -0,6 +1,14 @@

var util = require('util')
var nodeimu = require('./index.js');
var IMU = new nodeimu.IMU();
function lala() { IMU.getValue(); }
function dispAccel() {
var accel = IMU.getValue();
var sx = accel.x >= 0 ? ' ' : '';
var sy = accel.y >= 0 ? ' ' : '';
var sz = accel.z >= 0 ? ' ' : '';
var str = util.format('%s%s %s%s %s%s', sx, accel.x.toFixed(4), sy, accel.y.toFixed(4), sz, accel.z.toFixed(4));
console.log(str);
}
setInterval(lala, 50);
setInterval(dispAccel, 50);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc