Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsolderitsch/tello-nodejs
Interacting with the DJI/Ryze Tello using only node.js
https://github.com/jsolderitsch/tello-nodejs
drones javascript nodejs programming tello
Last synced: 29 days ago
JSON representation
Interacting with the DJI/Ryze Tello using only node.js
- Host: GitHub
- URL: https://github.com/jsolderitsch/tello-nodejs
- Owner: jsolderitsch
- License: mit
- Created: 2018-05-07T00:21:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T04:12:46.000Z (over 5 years ago)
- Last Synced: 2024-08-03T23:20:08.701Z (4 months ago)
- Topics: drones, javascript, nodejs, programming, tello
- Language: JavaScript
- Size: 31.3 KB
- Stars: 94
- Watchers: 12
- Forks: 31
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tello - Tello-nodejs
README
# tello-nodejs
Interacting with the DJI/Ryze Tello using only node.js.The code in this repo is based on the Tello.js source file distributed along with the Tello SDK.
The keyboard processing logic was adapted from sample code available at:
http://thisdavej.com/making-interactive-node-js-console-apps-that-listen-for-keypress-events/Use at your own risk, especially in low ambiant light conditions.
Developed and tested using v8.11.1 of node.js
You may need to import the got package with npm
1. Usage: node TelloConsole.js
You should first connect the computer where you are running node.js to the Tello wireless network for your Tello.
List of available keyboard commands is printed.
The first command to execute is c for command mode.
The land command will be executed when the space bar is pressed.
To quit the program, enter ctrl-c
See the Tello SDK documentation for explanation of the commands.
The commands that need a numeric parameter have a fixed value that is used when the command is sent to the Tello. This behavior may be improved in future versions of the TelloConsole.js file. Only the Flip forward version of the Flip command is currently supported.
*This is just a getting started version of the program.*
Extensions and improvements encouraged.
A new full command line script is also available. Any SDK command can be entered just like for the Tello3.py file distributed by DJI/Ryze for the Tello SDK.
2. Usage: node TelloCommandLine.js
As an added bonus, the readline feature used here has command history so that the up and down arrow keys can be used to find and then re-execute commands in the current session.
A video demo is available at: https://www.youtube.com/watch?v=BNNRNsa2a3o
A nice next step would be to add game controller support. node.js seems to support PS3 and PS4 controller types.
**Just Added:**
Added a mission file interpreter that reads in mission files (samples included in project) and flies them.
3. node TelloMissionFile.js
This code took some patient experimentation to get working and is **even more experimental**. It relies on the async/await feature of node.js to allow tello commands to be sent to the tello via the normal udp socket and then check for a response. There is a delay pattern built in as well so that the next command is not sent to the tello until a delay of about 5 seconds has elapsed. This makes it more likely that the tello has had enough time to execute the command. The user is prompted for a tello Mission file name and you can run multiple missions without turning off the tello.
*ToDo: Make the mission file language more expressive with at least loop support*