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
Nice project mate!
can you explain to me, how you make public methods this function?
I don't understand this.
1550512864271.png
 
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 Posts

Members online

No members online now.

Forum statistics

Threads
5,690
Messages
39,934
Members
17,023
Latest member
Repiv

New Posts