Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parrot AR Drone 1.0? #11

Closed
albertosantini opened this issue Oct 13, 2012 · 7 comments
Closed

Parrot AR Drone 1.0? #11

albertosantini opened this issue Oct 13, 2012 · 7 comments

Comments

@albertosantini
Copy link

Ok, I am lazy and I may try it before wondering.

Is the module compatible with the first release of ar.drone?

If it is not, maybe it would be nice to add a note in the README.

P.S.: I read CONTRIBUTING doc. The note is there. Thanks.

@felixge
Copy link
Owner

felixge commented Oct 13, 2012

Somebody with a 1.0 drone needs to try. I don't have one, so I don't know if my library is compatible. But yeah, the CONTRIBUTING doc talks about it.

@albertosantini
Copy link
Author

I tried the simple script and it works fine:

var arDrone = require('ar-drone');
var client  = arDrone.createClient();

client.takeoff();

client
  .after(3000, function() {
    this.stop();
    this.land();
  });

From the repl I tried also this one and I had been receiving data:

client.on('navdata', console.log);

Awesome!

P.S.

{ header: 1432778632,
  droneState:
   { flying: 0,
     videoEnabled: 0,
     visionEnabled: 0,
     controlAlgorithm: 0,
     altitudeControlAlgorithm: 1,
     startButtonState: 0,
     controlCommandAck: 1,
     cameraReady: 1,
     travellingEnabled: 0,
     usbReady: 0,
     navdataDemo: 1,
     navdataBootstrap: 1,
     motorProblem: 0,
     communicationLost: 0,
     softwareFault: 0,
     lowBattery: 0,
     userEmergencyLanding: 0,
     timerElapsed: 0,
     MagnometerNeedsCalibration: 0,
     anglesOutOfRange: 0,
     tooMuchWind: 0,
     ultrasonicSensorDeaf: 0,
     cutoutDetected: 0,
     picVersionNumberOk: 1,
     atCodecThreadOn: 1,
     navdataThreadOn: 1,
     videoThreadOn: 1,
     acquisitionThreadOn: 1,
     controlWatchdogDelay: 0,
     adcWatchdogDelay: 0,
     comWatchdogProblem: 0,
     emergencyLanding: 0 },
  sequenceNumber: 9402,
  visionFlag: 0 }

@felixge
Copy link
Owner

felixge commented Oct 13, 2012

Sweet! Closing this for now, but feel free to open issues / send patches if you find stuff that is not compatible.

Updated README.md in 42abd45 and 022a3c7

@felixge felixge closed this as completed Oct 13, 2012
@chiarae
Copy link

chiarae commented Aug 1, 2013

Hi, I tested some functions of the lib with an AR.Drone 1.0, firmware 1.7.11

Some of the basic commands are not working for me: up, down, left, right, front, back
Those are working fine: takeoff, land, clockwise, counterclockwise, stop, animateLeds

@drezac
Copy link

drezac commented Mar 12, 2015

Sorry- old thread, but I'm having trouble connecting wirelessly to the AR Drone using this method and wondering what I'm missing. I don't see anything in the code about how to connect to the drone.

Thoughts?

@albertosantini
Copy link
Author

You need to connect your box (mac, linux or pc) to the hotspot of the drone.

@drezac
Copy link

drezac commented Mar 12, 2015

Ah- this is a Parrot Mini Drone rolling spider. I might have that confused with the AR Drone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants