Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Creating Classes for DJI Tello

  1. #1
    Junior Member
    Join Date
    Jul 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Creating Classes for DJI Tello

    This is kind of a beginner looking for the advice of more advanced programmers.

    When you send commands to the DJI Tello (Which is a small drone for those who don't know), it sometimes sends a response, such as "ok" to let you know that it received the command and its ready for instruction. I tried to set up a class that just listened to the Tello port, and in spectacular newbie fashion, of course I wasn't able to send any commands, because it was busy listening on that port.

    Is this something I likely coded wrong, or would it be best to just drop that class in so it runs whenever a command is sent instead of always waiting for a datagram package?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Creating Classes for DJI Tello

    What is the connection between the running java program and communications with the device?
    What is the Tello port? Serial, USB or ??
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jul 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Creating Classes for DJI Tello

    The connection to the Tello is a wifi connection using UDP. The IP is 192.168.10.1 (i think), and the port is 8889.

    EDIT: My ultimate goal is to make a little GUI with buttons to control the drone while connected to my laptop. But I also want a good way to receive any messages from the device.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Creating Classes for DJI Tello

    So the connection/communication is via DatagramPackets?
    What is the protocol? Is the device like a server that waits for and responds to a client's request'?
    Does the device send unsolicited messages?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Help with creating classes and sub classes
    By Anotherspicybean in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 13th, 2013, 11:42 PM
  2. CREATING NESTED CLASSES
    By Benito NuGen in forum Object Oriented Programming
    Replies: 5
    Last Post: April 18th, 2013, 12:58 PM
  3. Replies: 6
    Last Post: October 31st, 2012, 06:16 AM
  4. Creating classes with generic objects
    By rbt in forum Collections and Generics
    Replies: 2
    Last Post: April 23rd, 2012, 08:08 PM
  5. Question about creating and using classes.
    By iDizzle in forum Object Oriented Programming
    Replies: 20
    Last Post: April 1st, 2012, 03:14 PM