hybridgroup / cylon-crazyflie Goto Github PK
View Code? Open in Web Editor NEWCylon adaptor/driver for the Crazyflie nanocopter
Home Page: http://cylonjs.com
License: Other
Cylon adaptor/driver for the Crazyflie nanocopter
Home Page: http://cylonjs.com
License: Other
I tried running the demo code against crazyflie 2.0. I'm getting following error.
$ node test.js
I, [2015-07-04T20:32:28.351Z] INFO -- : [Robot 1] - Starting connections.
STATE: setup --> connected
/opt/node-v0.12.6-linux-x64/lib/node_modules/cylon-crazyflie/node_modules/aerogel/lib/usbstreams.js:30
this.endpoint.startStream(3, 64);
^
TypeError: undefined is not a function
at ReadableUSBStream._read (/opt/node-v0.12.6-linux-x64/lib/node_modules/cylon-crazyflie/node_modules/aerogel/lib/usbstreams.js:30:17)
at ReadableUSBStream.Readable.read (_stream_readable.js:341:10)
at _stream_readable.js:689:16
at process._tickDomainCallback (node.js:381:11)
at Function.Module.runMain (module.js:503:11)
at startup (node.js:129:16)
at node.js:814:3
My npm module versions are
┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
Any idea?
Mac OSX 10.9.4
Motors spin briefly on power up and i see the green lights on both Crazyflie and Crazyradio but the motors never spin up using the standard example.
I confirmed thru cfclient that the telemetry from the onboard instrumentation is working .
in the console sometimes i get
STATE: setup --> connected
and other times i get
STATE: setup --> connected
starting telemetry
telemetry ready; elapsed= 439
{ 'pm.state':
{ id: 1,
type: 4,
group: 'pm',
name: 'state',
fullname: 'pm.state' },
'sys.canfly':
{ id: 2,
type: 4,
group: 'sys',
name: 'canfly',
fullname: 'sys.canfly' },
'acc.x': { id: 3, type: 7, group: 'acc', name: 'x', fullname: 'acc.x' },
'acc.y': { id: 4, type: 7, group: 'acc', name: 'y', fullname: 'acc.y' },
'acc.z': { id: 5, type: 7, group: 'acc', name: 'z', fullname: 'acc.z' },
'acc.zw': { id: 6, type: 7, group: 'acc', name: 'zw', fullname: 'acc.zw' },
'acc.mag2':
{ id: 7,
type: 7,
group: 'acc',
name: 'mag2',
fullname: 'acc.mag2' },
'baro.asl':
{ id: 8,
type: 7,
group: 'baro',
name: 'asl',
fullname: 'baro.asl' },
'baro.aslRaw':
{ id: 9,
type: 7,
group: 'baro',
name: 'aslRaw',
fullname: 'baro.aslRaw' },
'baro.aslLong':
{ id: 10,
type: 7,
group: 'baro',
name: 'aslLong',
fullname: 'baro.aslLong' },
'baro.temp':
{ id: 11,
type: 7,
group: 'baro',
name: 'temp',
fullname: 'baro.temp' },
'baro.pressure':
{ id: 12,
type: 7,
group: 'baro',
name: 'pressure',
fullname: 'baro.pressure' },
'motor.m4':
{ id: 13,
type: 6,
group: 'motor',
name: 'm4',
fullname: 'motor.m4' },
'motor.m1':
{ id: 14,
type: 6,
group: 'motor',
name: 'm1',
fullname: 'motor.m1' },
'motor.m2':
{ id: 15,
type: 6,
group: 'motor',
name: 'm2',
fullname: 'motor.m2' },
'motor.m3':
{ id: 16,
type: 6,
group: 'motor',
name: 'm3',
fullname: 'motor.m3' },
'stabilizer.roll':
{ id: 17,
type: 7,
group: 'stabilizer',
name: 'roll',
fullname: 'stabilizer.roll' },
'stabilizer.pitch':
{ id: 18,
type: 7,
group: 'stabilizer',
name: 'pitch',
fullname: 'stabilizer.pitch' },
'stabilizer.yaw':
{ id: 19,
type: 7,
group: 'stabilizer',
name: 'yaw',
fullname: 'stabilizer.yaw' },
'stabilizer.thrust':
{ id: 20,
type: 2,
group: 'stabilizer',
name: 'thrust',
fullname: 'stabilizer.thrust' },
'altHold.err':
{ id: 21,
type: 7,
group: 'altHold',
name: 'err',
fullname: 'altHold.err' },
'altHold.target':
{ id: 22,
type: 7,
group: 'altHold',
name: 'target',
fullname: 'altHold.target' },
'altHold.zSpeed':
{ id: 23,
type: 7,
group: 'altHold',
name: 'zSpeed',
fullname: 'altHold.zSpeed' },
'altHold.vSpeed':
{ id: 24,
type: 7,
group: 'altHold',
name: 'vSpeed',
fullname: 'altHold.vSpeed' },
'altHold.vSpeedASL':
{ id: 25,
type: 7,
group: 'altHold',
name: 'vSpeedASL',
fullname: 'altHold.vSpeedASL' },
'altHold.vSpeedAcc':
{ id: 26,
type: 7,
group: 'altHold',
name: 'vSpeedAcc',
fullname: 'altHold.vSpeedAcc' },
'gyro.x': { id: 27, type: 7, group: 'gyro', name: 'x', fullname: 'gyro.x' },
'gyro.y': { id: 28, type: 7, group: 'gyro', name: 'y', fullname: 'gyro.y' },
'gyro.z': { id: 29, type: 7, group: 'gyro', name: 'z', fullname: 'gyro.z' },
'vpid.pid':
{ id: 30,
type: 7,
group: 'vpid',
name: 'pid',
fullname: 'vpid.pid' },
'vpid.p': { id: 31, type: 7, group: 'vpid', name: 'p', fullname: 'vpid.p' },
'vpid.i': { id: 32, type: 7, group: 'vpid', name: 'i', fullname: 'vpid.i' },
'vpid.d': { id: 33, type: 7, group: 'vpid', name: 'd', fullname: 'vpid.d' },
'mag.x': { id: 34, type: 7, group: 'mag', name: 'x', fullname: 'mag.x' },
'mag.y': { id: 35, type: 7, group: 'mag', name: 'y', fullname: 'mag.y' },
'mag.z': { id: 36, type: 7, group: 'mag', name: 'z', fullname: 'mag.z' } }
STATE: connected --> waiting
yet nothing happens. any ideas?
Hello, I've tried running the demo code, and it logs the following:
2016-11-05T05:37:50.142Z : [Robot 1] - Starting connections.
2016-11-05T05:37:50.144Z : [Robot 1] - Starting connection 'crazyflie' on port radio://1/10/250KPS.
STATE: setup --> connected
starting telemetry
timers.js:327
throw new TypeError('"callback" argument must be a function');
^
TypeError: "callback" argument must be a function
at exports.setTimeout (timers.js:327:11)
at Crazyradio.onReadable (/Users/michael/Desktop/drones/node_modules/aerogel/lib/crazyradio.js:313:19)
at emitNone (events.js:86:13)
at ReadableUSBStream.emit (events.js:185:7)
at emitReadable_ (_stream_readable.js:432:10)
at emitReadable (_stream_readable.js:426:7)
at readableAddChunk (_stream_readable.js:187:13)
at ReadableUSBStream.Readable.push (_stream_readable.js:134:10)
at ReadableUSBStream.onData (/Users/michael/Desktop/drones/node_modules/aerogel/lib/usbstreams.js:38:12)
at emitOne (events.js:96:13)
I'm using a Mac, using Node v7, and installed the necessary libusb
package on Brew. I tried using the Aerogel module by itself and I'm able to scan for the drones URI's, but I'm not able to connect/control them. I tried messing around with the Aerogel code, but it still gives me different errors. Is there any way to fix this? Much appreciated!
i tried connecting it but it's not working.
I have already installed drivers, node.js, and used crazyflie windows client . But unable to connect with cylon-crazflie.
Any help is appreciated
Hi, Sorry I am a total beginner using nodejs
but I kept getting:
I, [2014-02-23T01:26:07.416Z] INFO -- : Initializing connections...
I, [2014-02-23T01:26:07.418Z] INFO -- : Initializing connection 'crazyflie'...
D, [2014-02-23T01:26:07.418Z] DEBUG -- : Loading adaptor 'crazyflie'
Illegal instruction: 4
when I tried to implement the crazyflie.js.
And tried to go back to aerogel but I still get "Illegal instruction: 4" and couldn't find way to solve it... THX:)
Hi -
Apologies if this isn't the right place for this but hopefully it is.
I'm attempting to run the Crazyflie demo code and believe I have all the dependencies installed correctly; when I do, I get the following error:
/node_modules/aerogel/node_modules/usb/usb.js:168
this.device.__claimInterface(this.id)
^
Error: LIBUSB_ERROR_ACCESS
at Error (native)
at Interface.claim (/Users/etlab/Desktop/rise-of-the-machines/node_modules/aerogel/node_modules/usb/usb.js:168:14)
at Crazyradio.setupRadio (/Users/etlab/Desktop/rise-of-the-machines/node_modules/aerogel/lib/crazyradio.js:111:17)
at CrazyDriver.connect (/Users/etlab/Desktop/rise-of-the-machines/node_modules/aerogel/lib/crazydriver.js:136:20)
at Copter.connect (/Users/etlab/Desktop/rise-of-the-machines/node_modules/aerogel/lib/copter.js:53:21)
at Adaptor.doConnect (/Users/etlab/Desktop/rise-of-the-machines/node_modules/cylon-crazyflie/lib/adaptor.js:47:15)
at Adaptor.connect (/Users/etlab/Desktop/rise-of-the-machines/node_modules/cylon-crazyflie/lib/adaptor.js:42:10)
at Robot.startConnection (/Users/etlab/Desktop/rise-of-the-machines/node_modules/cylon/lib/robot.js:317:22)
at Robot.<anonymous> (/Users/etlab/Desktop/rise-of-the-machines/node_modules/cylon/lib/robot.js:288:19)
at /Users/etlab/Desktop/rise-of-the-machines/node_modules/cylon/lib/utils/helpers.js:237:36
which as far as I can tell has to do with the Node process' ability to access the radio dongle. Is this an issue with cylon-crazyflie, one of its dependencies, or none of the above? The Python client is able to read data from the dongle just fine, so it seems to be connecting to my Mac just fine.
Any help anybody could provide here would be much appreciated - I'm totally unable to send commands to the copter for now.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.