{"id":19494797,"url":"https://github.com/ceejbot/aerodrome","last_synced_at":"2025-07-06T16:37:24.389Z","repository":{"id":8732551,"uuid":"10406886","full_name":"ceejbot/aerodrome","owner":"ceejbot","description":"nodecopter control abstractions: for your apocalyptic robot air force","archived":false,"fork":false,"pushed_at":"2017-05-02T18:07:13.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T12:06:55.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-31T14:48:33.000Z","updated_at":"2022-06-11T01:32:16.000Z","dependencies_parsed_at":"2022-09-17T16:50:36.953Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/aerodrome","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ceejbot/aerodrome","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Faerodrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Faerodrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Faerodrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Faerodrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/aerodrome/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Faerodrome/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263937108,"owners_count":23532645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T21:33:22.321Z","updated_at":"2025-07-06T16:37:24.373Z","avatar_url":"https://github.com/ceejbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"aerodrome\n=======\n\nNodecopter control abstractions for your apocalyptic robot air force.\n\n```javascript\nvar aerodrome = require('aerodrome');\nvar drone = new aerodrome.Drone();\n\ndrone.takeoff()\n\t.then(drone.moveToAltitude(3.0))\n\t.then(drone.turnToHeading(90))\n\t.then(drone.move(2000, 0.5))\n\t.then(drone.land());\n```\n\nThis module wraps [node-ar-drone](https://github.com/felixge/node-ar-drone) with some higher-level control abstractions and a Promises API. The promises library used is [when.js](https://github.com/cujojs/when), which is [Promises/A+ spec](http://promises-aplus.github.io/promises-spec/) compliant, so you may proceed with confidence in your plans for aerial domination and the destruction of all nodebots.\n\n__Current version:__ not yet released  \n__TravisCI status:__ TBD  \n\n## The plan\n\nPromises for anything that takes a callback in the ar-drone client library.\n\nThe client is available as `drone.client` in case you need to do something directly with the ar-drone API.\n\nEvents/streams for repeating events (still images, video, nav data you've asked to subscribe to).\n\nLoggable events emitted as `log` events for listeners to log in whatever manner they choose.\n\nControl primitives:\n\n* heading/1\n* altitude/setAltitude\n* battery level / emitted warnings on battery level\n* move (speed, time)\n* position/setPosition (relative to starting point) ? \n* animations, somehow\n\nPNG/video:\n\n* stream images to files\n* stream video to a file\n* give me the last image snapped\n\nState:\n\n* available as properties of the drone object\n* altitude / heading\n* current speed forward/back\n\n## What's working\n\nBasic takeoff \u0026 landing. Timed movement.\n\n## What's not working\n\nEverything else.\n\n\n## Drone API\n\nDocs TBD.\n\n### new areogel.Drone(*name*)\n\nCreate a new drone object. The `name` parameter is used in log events and in file names for saved images \u0026 videos.\n\n### drone.client\n\nThe underlying ar-drone client object is available in `drone.client` if you need more direct access.\n\n### drone.takeoff()\n\nReturns a promise that resolves when the takeoff is complete \u0026 the drone has settled.\n\n### drone.land()\n\nResolves when the drone lands.\n\n### drone.turnToHeading(*degrees*)\n\nResolves to the current heading when the drone reaches the desired heading. The heading is expressed as a float from -180 to 180. Negative numbers are a counterclockwise movement. Positive numbers are clockwise.\n\n### drone.moveToAltitude(*meters*)\n\nResolves to the current altitude when the drone reaches the desired altitude. The altitude is a floating point number.\n\n### drone.savePNGStream(*count*, *dir*)\n\nSave the next `count` pngs captured by the drone into the directory specified by `dir`. Images are named `\u003cdrone-name\u003e_\u003ccounter\u003e.png`.\n\n## Testing\n\nPossible sans drone?\n\n## Contributions\n\nAllman bracing, tabs to indent, camel case. Write tests in Mocha. [mocha-as-promised](https://github.com/domenic/mocha-as-promised) and [chai-as-promised](https://github.com/domenic/chai-as-promised/) are available.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Faerodrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Faerodrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Faerodrome/lists"}