javascript

157 views
Skip to first unread message

John Wiseman

unread,
Dec 10, 2012, 1:18:22 AM12/10/12
to mav...@googlegroups.com
Has anyone added or considered adding support for Javascript?  People are already running javascript on AR.Drones, it would be nice if they could speak mavlink easily.


John

John Wiseman

unread,
Dec 20, 2012, 3:01:23 PM12/20/12
to mav...@googlegroups.com
That's great to hear.  Do you have a github repo?

FYI you might be interested in http://www.voodootikigod.com/nodebots-the-rise-of-js-robotics and #robotjs on freenode.


John



On Fri, Dec 14, 2012 at 9:58 AM, <becrev...@alaska.edu> wrote:
Hi,

I've implemented a Python generator that implements a Node.js module for MAVLink.  At this point, I've only tested the generated v1.0/APM code, but it's successfully decoding packets from a real system.

I'll be issuing a pull request back to the main MAVLink repository when the work is bit farther along.

Bruce Crevensten

unread,
Dec 21, 2012, 1:07:12 AM12/21/12
to mav...@googlegroups.com
Here's the work in progress: https://github.com/poker-flat/mavlink/tree/node-mavlink

The Javascript generator file dwells in the pymavgen/generator directory, with the node module stuff in the pymavgen/generator/javascript dir; there's a deficient but well-intended readme there, as well, to sketch how to build & run tests.

I'm continuing to work to finish an initial implementation (CRC calc isn't right, etc), make my initial transliteration into more idiomatic and well-performing Javascript, and to figure out a sane way to npm-ify it so it's handy to include in other code.

Your link is well chosen, node-serialport is exactly what we're using in a prototype GCS to interface with an APM via xbee to provide to the MAVLink decoder.  Using Now.js, we've got a bunch of web clients kept in sync, more or less in real time, with a stream of incoming MAVLink packets -- pick up the APM and move it around and watch a dashboard update in realtime across machines connected on a local network.  It's a start!  Huge respect to the open-source community for making it possible.

I'll be posting updates as we continue to work on this, and let me know if you have any questions,
- Bruce
  


--
 
 


John Wiseman

unread,
Dec 21, 2012, 1:41:16 PM12/21/12
to mav...@googlegroups.com
Thanks for the github URL, Bruce.

I've been working on a web client GCS, running server-side python that translates mavlink coming in over xbee/3DR radio to JSON.  It sounds like there might be some overlap with what you're doing, in which case you might find some of the code useful: https://github.com/wiseman/mavelous



--
 
 

becrev...@alaska.edu

unread,
Jan 16, 2013, 2:01:52 PM1/16/13
to mav...@googlegroups.com
Just FYI, I've moved our group's Javascript MAVLink repo to a new org on Github (Alaska Center for UAS Integration, ACUASI).

becrev...@alaska.edu

unread,
Mar 27, 2013, 12:48:33 AM3/27/13
to mav...@googlegroups.com
I've opened a pull request on the main mavlink repo that adds a Javascript generator that renders code suitable for use in Node.js.
 
 
Preliminary, but feedback would be appreciated.

Meier Lorenz

unread,
Mar 27, 2013, 5:03:22 AM3/27/13
to <mavlink@googlegroups.com>
Hi,

Thanks for the pull request, I'll go through it soon.

-Lorenz


------------------------------------------------------
Lorenz Meier
Institute for Visual Computing
ETH Zurich
http://www.inf.ethz.ch/personal/lomeier/



On Mar 27, 2013, at 5:48 AM, <becrev...@alaska.edu<mailto:becrev...@alaska.edu>>
wrote:

I've opened a pull request on the main mavlink repo that adds a Javascript generator that renders code suitable for use in Node.js.

https://github.com/mavlink/mavlink/pull/107

Preliminary, but feedback would be appreciated.

--
Sie haben diese Nachricht erhalten, weil Sie der Google Groups-Gruppe MAVLink beigetreten sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an mavlink+u...@googlegroups.com<mailto:mavlink+u...@googlegroups.com>.
Weitere Optionen: https://groups.google.com/groups/opt_out



Reply all
Reply to author
Forward
0 new messages