
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Node library to communicate with AeroQuad open source multirotor platform.
AeroQuad is a fully open source hardware and software platform for multirotor aircraft. More information can be found at http://aeroquad.com.
PLEASE NOTE: Under development. I plan to release at 0.0.9 milestone.
npm install nodequad
A command line interface is provided to send commands and receive telemetry data. To ensure nodequad
is in your path, install it globally with npm:
npm install -g nodequad
Make sure you have a working AeroQuad flight controller board and can connect to it via the USB connection or a wireless serial connection. For STM32 based flight controllers, you'll need to install the virtual com port driver under Windows, available here: http://jleppert.github.io/nodequad/etc/VCP_V1.3.1_Setup.exe.
Nodequad also uses new ES6 harmony features such as Object.observe
, which requires node >= 0.11.13. You can obtain a compatible node version here: http://blog.nodejs.org/2014/05/02/node-v0-11-13-unstable.
var Nodequad = require('nodequad');
var vehicle = new Nodequad();
vehicle.probe.andConnect();
vehicle.on('driver.state.connected', function() {
console.log('Connected to aircraft!');
console.log('Reading aircraft flight configuration...');
vehicle.sync('config.vehicle.*');
console.log('Changing aircraft PID rate pid.');
vehicle.config.pid.rate.roll = new AeroQuad.PID(1.0, 1.1, 1.2);
console.log('Monitoring GPS sensor data...');
vehicle.stream('state.gps');
});
// monitor changes in state
vehicle.on('state.**', function(key, data) {
console.log('Aircraft state changed:', key, value);
});
// monitor when configuration values get changed
vehicle.on('config.**', function(key, data) {
console.log('Aircraft configuration changed:', key, value);
});
// monitor communication events from the underlying driver, such as connection, disconnection, etc.
vehicle.on('driver.**', function() {
console.log('Communication event occured:', this.event);
});
npm test
To view/generate test coverage report http://jleppert.github.io/nodequad/release/test/coverage:
npm test-coverage
Setup a branch for what you are working on:
git checkout -b my-new-feature
Test your changes with existing tests
npm test
Add unit tests under tests/
Add a description of your changes to the CHANGELOG.md
. Link to any associated issue.
Add an issue and tag it pull request
, including a link to any associated issue. Please send pull requests from your branch so merging is easy.
Please use github to report all bugs and feature requests at http://github.com/jleppert/nodequad/issues.
Copyright (c) 2014 Johnathan Leppert johnathan.leppert@gmail.com
Permission 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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE 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.
FAQs
Node library to communicate with aeroquad multicopter platform
We found that nodequad demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.