Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

Another SDK wrapper for NodeJS

elbir

New member
Joined
May 25, 2018
Messages
2
Reaction score
2
I've just published on NPM a solution to start programming for the Tello easily with NodeJS. I know that there were already very valid solutions, but it was fun to do it and I'm happy to share it.

NPM
Github

cheers
 
  • Like
Reactions: rokkoo and xcrost

rokkoo

New member
Joined
Feb 18, 2019
Messages
3
Reaction score
1
Nice project mate!
can you explain to me, how you make public methods this function?
I don't understand this.
1550512864271.png
 

elbir

New member
Joined
May 25, 2018
Messages
2
Reaction score
2
In the context of the class, it loops through an array where the public methods are described. For each of them, it creates a new key to the object `this` with the name of the method and a function as value. Note that the `this` key word here refers to the class itself, since it's inside an arrow-function which does not have its own `this`. When dealing with classes, since Javascript does not differentiate between private and public, that's all you need to expose public methods programmatically.
 

New Threads

Members online

Forum statistics

Threads
3,224
Messages
24,951
Members
8,317
Latest member
Clive Nelson