npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodequad

v0.0.2

Published

Node library to communicate with aeroquad multicopter platform

Downloads

76

Readme

Nodequad Build Status Dependency Status

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.

Installing

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

Getting Started

Quick Start

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.

Usage Example

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);
});

Running Tests

npm test

To view/generate test coverage report http://jleppert.github.io/nodequad/release/test/coverage:

npm test-coverage

Contributing

  • 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.

Reporting Bugs & Feature Requests

Please use github to report all bugs and feature requests at http://github.com/jleppert/nodequad/issues.

License

Copyright (c) 2014 Johnathan Leppert [email protected]

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.