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 ...

5 commenti:

  1. Buy your products online at low rates in Auckland Newzealand.We Provide you quality household items, outdoor furniture nz, gazeboz nz, items and all the items at low rates.

    RispondiElimina
  2. Nice information, valuable and excellent in Job, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.mobile phone repair in Novi
    iphone repair in Novi
    cell phone repair in Novi
    phone repair in Novi
    tablet repair in Novi
    ipad repair in Novi
    mobile phone repair Novi
    iphone repair Novi
    cell phone repair Novi
    phone repair Novi

    RispondiElimina
  3. Start your journey with this easy-to-follow learn Salesforce CPQ program. Understand product configuration, guided selling, and quote generation. Great for CRM enthusiasts.

    RispondiElimina