giovedì 19 aprile 2018

Java UDP & Drone Tello

Oggi ho comprato da www.dronisport.it il drone Tello di cui trovate maggiori dettagli qua:
https://www.ryzerobotics.com/tello

Il drone ha un piccolo sdk che si traduce in questo piccolo pdf :
https://dl-cdn.ryzerobotics.com/downloads/tello/0228/Tello+SDK+Readme.pdf
in questo pdf vengono descritti i comandi che si possono passare via UDP e che potete scrivere nel codice che ho allegato.

Su internet poi si trova un esempio in Python di come comunicare via UDP:
https://github.com/microlinux/tello/blob/master/tello.py

Io mi sono divertito a scrivere, per primo, il codice (vedi sotto) minimo necessario per mandare via java gli stessi comandi ... è un esempio e quindi è ovvio che può e deve essere migliorato ... io infatti già sto oltre ... :)

Ecco un video esplicativo di cosa ho fatto:


Ecco il codice:


Dovete solo aggiungere nel file host l'indirizzo del Tello, ad esempio io nel mio pc dove ho windows ho scritto nel file :
c:\Windows\System32\drivers\etc\hosts

 # localhost name resolution is handled within DNS itself.
127.0.0.1       localhost
192.168.10.1      tello

Buon divertimento e ciao ...

3 commenti:

  1. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.


    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    RispondiElimina
  2. Hadoop concepts, Applying modelling through R programming using Machine learning algorithms and illustrate impeccable Data Visualization by leveraging on 'R' capabilities.With companies across industries striving to bring their research and analysis (R&A) departments up to speed, the demand for qualified data scientists is rising.
    data science training in bangalore

    Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h
    as fewer syntactical constructions than other languages.python interview questions and answers

    RispondiElimina
  3. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    RispondiElimina