{"_id":"@agilatech/mpu9250","_rev":"4-039c8fdb2ba6d78eb6936e744b259b5d","name":"@agilatech/mpu9250","description":"Driver for the MPU9250","dist-tags":{"latest":"0.8.0"},"versions":{"0.8.0":{"name":"@agilatech/mpu9250","version":"0.8.0","description":"Driver for the MPU9250","main":"mpu9250.js","repository":{"type":"git","url":"git+https://github.com/Agilatech/mpu9250.git"},"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","dependencies":{"mpu9250":"*"},"gitHead":"ada5a77dd48e57e7571e7f17ee84c5a7f946e430","bugs":{"url":"https://github.com/Agilatech/mpu9250/issues"},"homepage":"https://github.com/Agilatech/mpu9250#readme","_id":"@agilatech/mpu9250@0.8.0","scripts":{},"_shasum":"8b3e74bbd81d8b0313ef433c071eacdc8abf4eb2","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"shasum":"8b3e74bbd81d8b0313ef433c071eacdc8abf4eb2","tarball":"https://registry.npmjs.org/@agilatech/mpu9250/-/mpu9250-0.8.0.tgz","integrity":"sha512-PnyhIItffBV3ZNcwDqgJcNvKoK6wfgjRGresJaFU/tSG0hxdZkZa0lbtt+S2sLnd8Pf1Up2IxBt84pz8uB68sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtANgOQeeECcpe9nF9WmUSv2f2YC4Nbd+JIQwuiHRL2AiEAzHAAkEE1L9z7ZrOniIiMGyRPaoShK/Arf/Lk/ZxKqB4="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mpu9250-0.8.0.tgz_1515081829466_0.18861206900328398"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"## Node addon for hardware MPU9250 sensor\n\n##### This addon should work on any Linux platform, and has been thoroughly tested on BBB\n\n### Install\n\n```\nnpm install @agilatech/mpu9250\n```\nOR\n```\ngit clone https://github.com/Agilatech/mpu9250.git\nnode-gyp configure build\n```\n\n### Usage\n\n\n##### Load the module and create an instance\n```\nconst addon = require('@agilatech/mpu9250');\n\n// create an instance on the /dev/i2c-2 bus device file\nconst mpu9250 = new addon.Mpu8250('/dev/i2c-2');\n```\n\n\n##### Get basic device info\n```\nconst name = mpu9250.deviceName();  // returns string with name of device\nconst type = mpu9250.deviceType();  // returns string with type of device\nconst version = mpu9250.deviceVersion(); // returns this software version\nconst active = mpu9250.deviceActive(); // true if active, false if inactive\nconst numVals =  mpu9250.deviceNumValues(); // returns the number of paramters sensed\n```\n\n\n#### Get parameter info and values\n```\nconst paramName0 = mpu9250.nameAtIndex(0);\nconst paramType0 = mpu9250.typeAtIndex(0);\nconst paramVal0  = mpu9250.valueAtIndexSync(0);\n// ...\nconst paramName8 = mpu9250.nameAtIndex(8);\nconst paramType8 = mpu9250.typeAtIndex(8);\nconst paramVal8  = mpu9250.valueAtIndexSync(8);\n```\n#### Asynchronous value collection is also available\n```\nmpu9250.valueAtIndex(0, function(err, val) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(`Asynchronous call return: ${val}`);\n    }\n});\n```\n\n### Operation Notes\nThis is a good example of wrapping the core functionality of an existing module to match the expeced API of the VersaLink device driver.  All the real work is the mpu9250 module, and this module just tweaks things a bit to make them work for the end use.\n\n\n### Dependencies\n* mpu9250\n\n\n### Copyright\nCopyright © 2018 [Agilatech®](https://agilatech.com). All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"time":{"modified":"2023-10-25T22:50:15.359Z","created":"2018-01-04T16:03:51.265Z","0.8.0":"2018-01-04T16:03:51.265Z"},"homepage":"https://github.com/Agilatech/mpu9250#readme","repository":{"type":"git","url":"git+https://github.com/Agilatech/mpu9250.git"},"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"bugs":{"url":"https://github.com/Agilatech/mpu9250/issues"},"license":"MIT","readmeFilename":"README.md","users":{"gregoose81":true}}