Code Monkey home page Code Monkey logo

droneblocks-telloedu-python's People

Contributors

dbaldwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

droneblocks-telloedu-python's Issues

Tello Video Stream

Hi Dennis, I am currently following ur steps provided on youtube to create drone swarming for the TelloEdu drones.

I have drones connected to an external router as access point and the respective addresses are 192.168.0.101 and 102. However I was trying to enable the opencv module to display video streaming capabilities for one drone first before moving on to another. But it just wouldnt show any stream or response.

`import cv2
#telloVideo = cv2.VideoCapture("udp://@0.0.0.0:11111)" #
#telloVideo = cv2.VideoCapture("udp://@192.168.0.101:8889")

wait for frame

ret = False

scale down

scale = 3
while(True):
# Capture frame-by-framestreamon
ret, frame = telloVideo.read()
if(ret):
# Our operations on the frame come here
height , width , layers = frame.shape
new_h=int(height/scale)
new_w=int(width/scale)
resize = cv2.resize(frame, (new_w, new_h)) # <- resize for improved performance
# Display the resulting frame
cv2.imshow('Tello',resize)

if cv2.waitKey(1) & 0xFF == ord('s'):
    cv2.imwrite("test.jpg",resize) # writes image test.bmp to disk
    print("Take Picture")

if cv2.waitKey(1) & 0xFF == ord('q'):
    break

When everything done, release the capture

telloVideo.release()
cv2.destroyAllWindows()`

Drone Response

The commands work but I don't receive the drone response. For example, if I try to check the battery level I don't receive the information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.