Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit ca6a8ef

Browse files
committed
init
1 parent fadfa19 commit ca6a8ef

File tree

148 files changed

+6644
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+6644
-0
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

.eslintrc.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'@vue/standard'
9+
],
10+
rules: {
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
13+
},
14+
parserOptions: {
15+
parser: 'babel-eslint'
16+
}
17+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Doğukan Güven Nomak
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Drone Keyboard for Tello
2+
3+
Drone Keyboard is a new way to control your Tello. A special design to have amazing experience with your pc and drone.
4+
5+
![](https://dnomak.com/img/drone-keyboard-for-tello--github.jpg)
6+
7+
# SAFETY FIRST!
8+
Use the codebase or app as your own risk. The drone can hurt you and I'm not responsible for that. Always test commands with the props removed first. Don't be dumb! Also please make sure that Tello’s **firmware is updated!** If Tello does not receive any command input for **15 seconds**, it will land automatically.
9+
10+
### Test flight
11+
![](https://dnomak.com/img/drone-keyboard-for-tello--github.gif)
12+
13+
## Software Used
14+
* Vue
15+
* Electron
16+
* Node.js
17+
* Socket.io
18+
* VXG Media Player
19+
20+
## Hardware Used
21+
* [DJI Tello Drone](https://click.dji.com/AGwCSSOFfGVw1JCaOzzEPA?pm=link)
22+
* [Extra Batteries](https://store.dji.com/product/tello-battery)
23+
* [Tello Battery Charging Hub](https://store.dji.com/product/tello-battery-charging-hub)
24+
25+
## Using This Code
26+
27+
### Development
28+
1. `npm install`
29+
1. `npm run serve` - Runs only Vue project on `http://localhost:8080`
30+
1. Connect to drone via wifi
31+
1. `npm run serve:electron` - Opens Electron project and runs Vue project in it on `http://localhost:8080`
32+
33+
### Start Stream
34+
1. You need to add [VXG Media Player](https://chrome.google.com/webstore/detail/vxg-media-player/hncknjnnbahamgpjoafdebabmoamcnni) Chrome Extension to start Video Stream. Video Stream doesn't start on Electron. You should push 'Shift' button which opens new tab on Chrome to start Video Stream.
35+
1. `npm run build` - For Video Stream in `main.js` there are 2 ports. On port `:2020`, Vue project which locates in `/dist` runs. On port `:2021` index.html which locates in `/stream` runs. This `:2021` port was called as iframe to Vue project which runs on `:2020` and Video Stream starts.
36+
37+
### Build Mac App
38+
1. `npm run build` - Build Vue project in `/dist`.
39+
1. Please comment `<script src="http://localhost:8080/app.js"></script>` in `/index.html`, change names of `app.***.css`, `chunk-vendors.***.js` and `app.***.js` with file names under `/dist` and remove comments.
40+
1. `npm run build:electron:mac` - Extract the app to `release-builds`
41+
42+
## Troubleshooting
43+
[Docs for Tello are available here](https://dl-cdn.ryzerobotics.com/downloads/tello/20180910/Tello%20SDK%20Documentation%20EN_1.3.pdf)
44+
45+
I had to update the firmware of my drone when it came in the mail before I could use this 1.3 API. Do this via the Tello app on your phone.
46+
47+
If you let the drone's WIFI connection lapse, you have to restart the server by typing `rs` into the terminal. This will re-run the `command command` that puts the drone in SDK mode. If you don't do this, it will ignore any commands you send it.
48+
49+
## License
50+
Drone Keyboard for Tello app is licensed under the [MIT](http://opensource.org/licenses/MIT) license.
51+
52+
[VXG Media Player](https://www.videoexpertsgroup.com/vxg-chrome-plugin/) is licensed to [Video Experts Group](https://www.videoexpertsgroup.com/). MIT license is not run for `/stream` folder, usage is free. If you want to use this extension for your projects, I suggest you to contact with [Video Experts Group](https://www.videoexpertsgroup.com/).
53+
54+
## Examples & Resources
55+
* [jsolderitsch/tello-nodejs](https://github.com/jsolderitsch/tello-nodejs) - very simple JavaScript examples
56+
* [FFMpeg + Node.js Video in the browser complicated example](https://github.com/SovGVD/nodetello/)
57+
* [Some Japanese Developer Figured out how to get video working with WebRTC](https://qiita.com/a-baba/items/d728d580f89473c5fd18)
58+
* [JavaScript Drones](https://github.com/wesbos/javascript-drones)
59+
* Link your repo here for others to learn!
60+
61+
## Inspired by
62+
* [Wes Bos](https://github.com/wesbos/javascript-drones)
63+
* [Pynoth](https://dribbble.com/shots/5126767-HHKB)

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

dist/css/app.c251e56e.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/favicon/android-icon-144x144.png

5.64 KB
Loading

dist/favicon/android-icon-192x192.png

6.44 KB
Loading

dist/favicon/android-icon-36x36.png

1.87 KB
Loading

dist/favicon/android-icon-48x48.png

2.19 KB
Loading

dist/favicon/android-icon-72x72.png

3.02 KB
Loading

dist/favicon/android-icon-96x96.png

3.86 KB
Loading

dist/favicon/apple-icon-114x114.png

4.16 KB
Loading

dist/favicon/apple-icon-120x120.png

4.51 KB
Loading

dist/favicon/apple-icon-144x144.png

5.64 KB
Loading

dist/favicon/apple-icon-152x152.png

5.92 KB
Loading

dist/favicon/apple-icon-180x180.png

7.36 KB
Loading

dist/favicon/apple-icon-57x57.png

2.26 KB
Loading

dist/favicon/apple-icon-60x60.png

2.59 KB
Loading

dist/favicon/apple-icon-72x72.png

3.02 KB
Loading

dist/favicon/apple-icon-76x76.png

3.17 KB
Loading
7 KB
Loading

dist/favicon/apple-icon.png

7 KB
Loading

dist/favicon/favicon-16x16.png

1.33 KB
Loading

dist/favicon/favicon-32x32.png

1.93 KB
Loading

dist/favicon/favicon-96x96.png

3.86 KB
Loading

dist/favicon/favicon.ico

1.12 KB
Binary file not shown.

dist/favicon/ms-icon-144x144.png

5.64 KB
Loading

dist/favicon/ms-icon-150x150.png

5.83 KB
Loading

dist/favicon/ms-icon-310x310.png

15.2 KB
Loading

dist/favicon/ms-icon-70x70.png

2.98 KB
Loading
Binary file not shown.

0 commit comments

Comments
 (0)