Code Monkey home page Code Monkey logo

tello's People

Contributors

filippobottega avatar smerrony 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  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  avatar  avatar

tello's Issues

Tello doesn't takeoff

Expected Behavior

Hello,
I'have connected my laptop to Tello network and I run the demo code using the debug:

package main
import (
  "log"
  "time"
  "github.com/SMerrony/tello"
)

func main() {
  	drone := new(tello.Tello)
  err := drone.ControlConnectDefault()
  if err != nil {
    log.Fatalf("%v", err) 
  }

  drone.TakeOff()
  time.Sleep(10 * time.Second)
  drone.Land()
  drone.ControlDisconnect()
}

Current Behavior

I have no errors from the execution but Tello drone didn't takeoff.

Your Environment

  • Go Version used: go version go1.10.3 windows/amd64
  • Tello Package Version or Date: 31/07/2018
  • Operating System and version: Windows 10 1083

After a failed Connect, retries always return already connecting error

Expected Behavior

Once a connection attempt has failed, things should be reset to allow future attempts.

Current Behavior

After initial failure, always get a "Tello connection atempt already in progress" error.

Your Environment

  • Go Version used: 1.10.3
  • Tello Package Version or Date: v0.8.0
  • Operating System and version: Win10 and Ubuntu 18.04

Land command appears to be ignored

I tried running telloterm and using your library and ran into the same issue- if I send a takeoff command and then a land command even a few seconds later, the land command is ignored. In the basic example you provide, takeoff, wait 10s and land works, but as soon as I try less time- say 1s or 3s- the land command is ignored.

I'm going to implement the basic UDP comms and see if I can replicate this.

Here's the exact code I'm using:

package main

import (
	"fmt"
	"log"

	"github.com/SMerrony/tello"
)

func basicTakeOffAndLandingDemo() {
	fmt.Println("Demo: Connect, takeoff, hover, land")
	fmt.Println("Connecting to drone...")

	drone := new(tello.Tello)
	err := drone.ControlConnectDefault()
	if err != nil {
		log.Fatalf("%v", err)
	}

	drone.TakeOff()
	time.Sleep(3 * time.Second) // 1 second doesn't work
	drone.Land()
	drone.ControlDisconnect()

	fmt.Println("Disconnected from drone...")
}

func main() {
	basicTakeOffAndLandingDemo()
}

Picture is not transferred correctly when any chunk is received twice

Expected Behavior

Picture is successfully received even when flying in area with heavy signal interference.

Current Behavior

It is almost impossible to capture picture in locations with high signal interference, due to bug I have discovered and fixed in this commit. (But unfortunately this commit contains also another improvements for communication, so it isn't easy to see, where exactly the fix is.)

Current implementation of picture transfer is counting every received chunk and rejects all chunks when piece already have received 8 chunks. In situation, where any chunk is received twice, there will be some chunks missing in that piece. As result whole image is not saved.

Possible Solution

Move this line in tello.go (on line 347):
tello.fileTemp.pieces[thisChunk.pieceNum].numChunks++

To the inside of if body on line 342:
if !already {

This causes only properly received chunks to be counted and (so far during my testing) every image to be received.

Steps to Reproduce (for bugs)

  1. Connect to tello
  2. Take some pictures (10+)
  3. Save pictures
  4. Disconnect from tello
  5. Some pictures might be missing based on interference between drone and your WiFi adapter

Your Environment

  • Go Version used: go version go1.11.5 linux/amd64
  • Tello Package Version or Date: 401f34d
  • Operating System and version: Arch Linux

gRPC support

Hello,
I'd like to use tello library from C# or VB.NET. I think that gRPC may be a solution to consume this library from a .NET desktop application.
What do you think about implementing a gRPC server?

Thank you,
Filippo.

Autopilot wrong direction

Expected Behavior

Current Behavior

Possible Solution

maybe add Autofly (direction,distance) like scratch or python but can adjust speed ( more than 1m/s ) and more range (more than 5 m) like now

Steps to Reproduce (for bugs)

Context

many times

Your Environment

  • Go Version used: 1.10.3
  • Tello Package Version or Date: V1.03.33.01
  • Operating System and version: Windows 10 pro build 1803

Python wrapper for repo

Hello,

First of all, thank you for your github.

Sadly, I do not know how to use Go, that is why I wanted to ask if there is any Python wrapper for this git that you know of? or if anyone has implemented this.

Thank you

Arshad

ControlDisconnect() can hang after reconnecting

Expected Behavior

ControlDisconnect() should always succeed.

Current Behavior

After connecting, disconnecting, (re)connecting, the next ControlDisconnect call hangs.

Possible Solution

Looks as if the semaphore channels are blocking.

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.