All Projects → algolia → pdrone

algolia / pdrone

Licence: MIT License
Control Parrot drones with JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pdrone

olympe
Python controller library for Parrot Drones
Stars: ✭ 62 (+181.82%)
Mutual labels:  drone, parrot
beboptwo4g
4G/LTE softmod for the Parrot Bebop 2
Stars: ✭ 50 (+127.27%)
Mutual labels:  drone, parrot
groundsdk-android
Parrot Ground SDK for Android
Stars: ✭ 17 (-22.73%)
Mutual labels:  drone, parrot
betafpv-f3
Board Support Crate for the BetaFPV F3 Drone Flight Controller
Stars: ✭ 37 (+68.18%)
Mutual labels:  drone
QUICKSILVER
Flight Controller Firmware
Stars: ✭ 45 (+104.55%)
Mutual labels:  drone
drone-irc
Drone plugin for sending IRC messages
Stars: ✭ 12 (-45.45%)
Mutual labels:  drone
pirrot
A radio repeater controller (supporting both simplex and duplex operation modes) for the RaspberryPi.
Stars: ✭ 25 (+13.64%)
Mutual labels:  parrot
drone-git-push
Drone plugin for deploying code using git push
Stars: ✭ 49 (+122.73%)
Mutual labels:  drone
drone-wechat
drone wechat notification plugin
Stars: ✭ 13 (-40.91%)
Mutual labels:  drone
drone-webhook
Drone plugin for triggering webhook notifications
Stars: ✭ 40 (+81.82%)
Mutual labels:  drone
Parrot
Web router specially designed for building SPAs using Meteor
Stars: ✭ 75 (+240.91%)
Mutual labels:  parrot
drone-hugo
Drone plugin to publish Hugo generated websites
Stars: ✭ 26 (+18.18%)
Mutual labels:  drone
zubax gnss
Zubax GNSS module
Stars: ✭ 45 (+104.55%)
Mutual labels:  drone
gobot
Golang framework for robotics, drones, and the Internet of Things (IoT)
Stars: ✭ 7,869 (+35668.18%)
Mutual labels:  drone
drone-s3-cache
Caches build artifacts to S3 compatible storage backends
Stars: ✭ 27 (+22.73%)
Mutual labels:  drone
drone-facebook
Drone plugin for sending Facebook notifications
Stars: ✭ 15 (-31.82%)
Mutual labels:  drone
Bebop-Autonomy-Vision
An autonomous, vision-based Bebop drone.
Stars: ✭ 24 (+9.09%)
Mutual labels:  drone
Node-RED-Tello-Control
Node-RED flows to control the Ryze Tello Drone
Stars: ✭ 121 (+450%)
Mutual labels:  drone
GapFlyt
GapFlyt: Active Vision Based Minimalist Structure-less Gap Detection For Quadrotor Flight
Stars: ✭ 30 (+36.36%)
Mutual labels:  drone
QGISFMV
QGIS Full Motion Video (FMV)
Stars: ✭ 104 (+372.73%)
Mutual labels:  drone

pdrone

Control Parrot drones with JavaScript

Compatible with Node.js and Parrot mambo for now.

API

const pdrone = require('pdrone');
const drone = pdrone({id: 'dronename', debug: false});
drone.on('connected', function() {
  drone.flatTrim(); // use flatTrim() everytime you want the drone to calm down
  drone.takeOff();
  drone.land();  
  drone.flatTrim();
  drone.emergency(); // immediately stops the drone, that's what is inside stop.js
  drone.fly({
    roll: 0, // -100/100
    pitch: 0, // -100/100
    yaw: 0, // -100/100
    gaz: 0, // -100/100, = throttle
  });
  drone.autoTakeOff(); // will start propellers in low mode and wait for you to throw it in the air (gently)
  drone.flip({direction: 'right'}); // front/back/right/left
  drone.cap({offset: 0}); // -180/180, I have no idea what this does
  drone.openClaw();
  drone.closeClaw();
  drone.fire();

  // events
  drone.on('connected', function() {});
  // flight status, accessories, ... you'll have to dig that
  drone.on('sensor', function(event) {
    // event.name =>
    //   flatTrimDone, status, alert, claw, gun, position, speed, altitude, quaternion
    // event.value
  });
});

Lower level API

Any command from the arsdk-xml can be ran:

drone.runCommand('minidrone', 'Piloting', 'TakeOff')
drone.connection.on('sensor:minidrone-PilotingState-FlyingStateChanged', e => console.log(e))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].