hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 61 forks source link

Bebop 2 mjpeg-stream not working #26

Closed brunoua closed 8 years ago

brunoua commented 8 years ago

Hello,

I was trying to run the sample "mjpeg-stream" in my Beboop 2, however I encounter the following error:

/home/bruno/app/node_modules/node-bebop/lib/types.js:86 return arg.enum[buffer.readInt32LE(index)].name; ^ TypeError: Cannot read property 'name' of undefined at Object.module.exports.enum.read (/home/bruno/app/node_modules/node-bebop/lib/types.js:86:49) at /home/bruno/app/node_modules/node-bebop/lib/bebop.js:330:18 at Array.forEach (native) at Bebop._packetReceiver (/home/bruno/app/node_modules/node-bebop/lib/bebop.js:327:21) at Socket.EventEmitter.emit (events.js:98:17) at UDP.onMessage (dgram.js:440:8)

Any suggestion?

Greetings, Bruno Barbosa

deadprogram commented 8 years ago

Hi @brunoua we've just released v0.5.0 which has many improvements including the video command fixes, as you had already confirmed. Please give it a try, and if needed reopen this issue. Thanks!