{"_id":"@0x77/tellots","_rev":"1-5f55e77e1eb445cabd3219e53c28f7c9","name":"@0x77/tellots","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.2":{"name":"@0x77/tellots","version":"0.2.2","description":"async based library to be able to control de dji tello drone, forked from tellojs project","main":"dist/index.js","scripts":{"build":"tsc","prepublishOnly":"npm-run-all build"},"keywords":["tello","dji","drone","iot","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/0x77dev/tellots.git"},"contributors":[{"name":"kanekotic","email":"alvarojosepl@gmail.com"}],"author":{"name":"Mikhail Marynenko","email":"0x77dev@protonmail.com"},"types":"dist/index.d.ts","license":"MIT","private":false,"devDependencies":{"@types/node":"^14.0.27","npm-run-all":"^4.1.5","typescript":"^3.9.7"},"gitHead":"4db003ce856d50ab7c6b0296cb7121dec1068b19","bugs":{"url":"https://github.com/0x77dev/tellots/issues"},"homepage":"https://github.com/0x77dev/tellots#readme","_id":"@0x77/tellots@0.2.2","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-wrJTTL4Yrh4oVAyzfB/aA1QjGNx5g/Ymr3xZFMf3q/UdkaU9/1Qjh7MDAKu3hucIQkoJP1bM2omct0f3H/Syeg==","shasum":"ff1a52b6daf21a075a233d0165163e69e5fafdd5","tarball":"https://registry.npmjs.org/@0x77/tellots/-/tellots-0.2.2.tgz","fileCount":52,"unpackedSize":56026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIYk2CRA9TVsSAnZWagAA0Q8P/1TtNKIbK8XekAWpbT6b\nVPaHhloijhv2PG6joZgQCfaXzwZ/fWAcwIEtdPQGgjjsMNSgRsIFeSuzKynY\nPpfyjSVPrOq67FOt3lyGPuXAiE4nUw9Nl0crh9VB8rVvmXuDLFJRh5461H7L\nzdfyQIXoFs4+4fc6CS5BRj1sXAlAzTHSl6p/pHzHPuIc+kMnZi5EVt115Rmy\naeOsOQPbQ/iSJbNrOhwOJp0kQImSs7xgfy5mkI+TEqZTzv/tzJBfHmcQrp2+\n3WBHUALRmMtxlI9TZpgGs2yK4XRFa1TLUQKR2EayVPZldlvP9R5lxJUAASRD\nRVpDVSSZoNJtYY3kR2Zg3jcjlTxhMoH2PmBltF/39/ITUN6QZG0ot+I62Zrd\nwUfq40k60aBrmDEP6xxpjeFzgIOrEgdmEWEQ6koVX8TKimGPU7PI6jdAxL9D\ndJSFNyJXkmzaHHJwGuXu2JlmAxB3iKmrU985ayVOWoUcgZOBgy4uZFJPq6iB\nuuL4xlOUaEwEejEku2DRI852VHMtvzB+P6BzAiVt3JyH1lpTBlwcBIowp7Ad\nn6ajWbZT4pXaMoCe2u1RbufG6ohz7jENJr7QlnqeuLxPUxWvsD6kcFJAlvh5\nQ2GJLIxJrCkElF8FqoOIosGZhro8ZcIdl31379Vv8pfPQzkuR75AuW8CZIke\n7jYv\r\n=Kd4l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpAWR8IFQyAzgTDPyFFn8qkEVggiJNDCOwda9+lLEyWAIhAK7kLpAl4v+wm/qfGiE9HvqJZlnMUpOXwdzj2slJhrjO"}]},"maintainers":[{"name":"0x77","email":"0x77dev@protonmail.com"}],"_npmUser":{"name":"0x77","email":"0x77dev@protonmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tellots_0.2.2_1596033334126_0.2835501292104601"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-29T14:35:34.084Z","0.2.2":"2020-07-29T14:35:34.277Z","modified":"2022-04-04T10:27:51.289Z"},"maintainers":[{"name":"0x77","email":"0x77dev@protonmail.com"}],"description":"async based library to be able to control de dji tello drone, forked from tellojs project","homepage":"https://github.com/0x77dev/tellots#readme","keywords":["tello","dji","drone","iot","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/0x77dev/tellots.git"},"contributors":[{"name":"kanekotic","email":"alvarojosepl@gmail.com"}],"author":{"name":"Mikhail Marynenko","email":"0x77dev@protonmail.com"},"bugs":{"url":"https://github.com/0x77dev/tellots/issues"},"license":"MIT","readme":"<img width=\"100px\" height=\"100px\" src=\"./icon.svg\" />\n\n# TelloTS\n![Build](https://github.com/0x77dev/tellots/workflows/Build/badge.svg)\n[![npm](https://img.shields.io/npm/dt/@0x77/tellots.svg)](https://github.com/0x77dev/tellots)\n[![GitHub license](https://img.shields.io/github/license/0x77dev/tellots.svg)](https://github.com/0x77dev/tellots/blob/master/LICENSE)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/0x77dev/tellots/graphs/commit-activity)\n\n## Motivation\n\nProvide an async promise based unofficial sdk for the tello drone based on the official [documentation](https://dl-cdn.ryzerobotics.com/downloads/tello/20180910/Tello%20SDK%20Documentation%20EN_1.3.pdf).\n\nRefactored to TypeScript, forked from [tellojs](https://github.com/kanekotic/tellojs).\n\n## Installation\n\nadd it to your project using `npm install @0x77/tellots --save` or `yarn add @0x77/tellots`\n\n## Usage\n\nthis sdk provide functions when you import for the next capabilities:\n\n```js\nimport sdk from \"@0x77/tellots\";\n// or\n// const sdk = require('@0x77/tellots')\n\nconst x = number,\n    y = number,\n    z = number,\n    speed = number,\n    yaw = number,\n    start = {x, y, z},\n    end = {x, y, z},\n    ssid = string,\n    password = string\n\n//CONTROL COMMANDS\nawait sdk.control.connect()                     // Enter SDK mode.\nawait sdk.control.takeOff()                     // Auto takeoff.\nawait sdk.control.land()                        // Auto landing.\nawait sdk.control.emergency()                   // Stop motors immediately\nawait sdk.control.stop()                        // Hovers in the air\nawait sdk.control.move.up(x)                    // Ascend to “x” cm.\nawait sdk.control.move.down(x)                  // Descend to “x” cm.\nawait sdk.control.move.left(x)                  // move left to “x” cm.\nawait sdk.control.move.right(x)                 // move right to “x” cm.\nawait sdk.control.move.front(x)                 // move forward to “x” cm.\nawait sdk.control.move.back(x)                  // move backwards to “x” cm.\nawait sdk.control.move.go(end, speed)           //  fly to x y z in speed (cm/s)\nawait sdk.control.move.curve(start, end, speed) //  fly to x y z in speed (cm/s)\nawait sdk.control.rotate.clockwise(x)           // rotate clockwise 'x' degrees.\nawait sdk.control.rotate.counterClockwise(x)    // rotate counter clockwise 'x' degrees.\nawait sdk.control.flip.left()                   // Flip to the left.\nawait sdk.control.flip.right()                  // Flip to the right.\nawait sdk.control.flip.back()                   // Flip in backward.\nawait sdk.control.flip.front()                  // Flip in forward.\n\n//SET COMMANDS\nawait sdk.set.speed(x)                          // set speed to x cm/s\nawait sdk.set.rc(x, y, z, yaw)                  // Send RC control via four channels.\nawait sdk.set.wifi(ssid, password)              // Set Wi-Fi with SSID password\n\n//READ COMMANDS\nawait sdk.read.speed()                          // Obtain current speed (cm/s).\nawait sdk.read.battery()                        // Obtain current battery percentage.\nawait sdk.read.time()                           // Obtain current flight time.\nawait sdk.read.height()                         // Obtain get height (cm)\nawait sdk.read.temperature()                    // Obtain temperature (°C)\nawait sdk.read.attitude()                       // Obtain IMU attitude data\nawait sdk.read.barometer()                      // Obtain barometer value (m)\nawait sdk.read.tof()                            // Obtain distance value from TOF（cm）\nawait sdk.read.acceleration()                   // Obtain IMU angular acceleration data (0.001g)\nawait sdk.read.wifi()                           // Obtain Wi-Fi SNR.\n\n//STREAM STATE\nconst stateEmitter = sdk.receiver.state.bind()  // Binding to port of state\nstateEmitter.on('message', res => console.log)  // React to messages on received\nsdk.receiver.state.close()                      // Stop receiving messages\n\n//STREAM VIDEO\nconst videoEmitter = sdk.receiver.video.bind()  // Binding to port of video\nvideoEmitter.on('message', res => console.log)  // React to messages on received\nsdk.receiver.video.close()                      // Stop receiving messages\n\n/*\nExample output of state:\n{ \n    pitch: 1,\n    roll: 0,\n    yaw: 0,\n    speed: { x: 0, y: 0, z: 0 },\n    temperature: { low: 51, high: 53 },\n    tof: 6553,\n    height: 0,\n    battery: 87,\n    barometer: 24.65,\n    time: 0,\n    acceleration: { x: 16, y: 3, z: -990 } \n}\n\nExample output of video: is binary ;)\n*/\n```\n","readmeFilename":"README.md"}