smerrony / tello Goto Github PK
View Code? Open in Web Editor NEWThe tello Go (golang) package is an unofficial, easy-to-use, standalone API for the Ryze Tello® drone.
License: MIT License
The tello Go (golang) package is an unofficial, easy-to-use, standalone API for the Ryze Tello® drone.
License: MIT License
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()
}
I have no errors from the execution but Tello drone didn't takeoff.
Once a connection attempt has failed, things should be reset to allow future attempts.
After initial failure, always get a "Tello connection atempt already in progress" error.
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()
}
How to get video image from downward camera? I would like to do some swarming project.
Picture is successfully received even when flying in area with heavy signal interference.
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.
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.
go version go1.11.5 linux/amd64
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.
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() should always succeed.
After connecting, disconnecting, (re)connecting, the next ControlDisconnect call hangs.
Looks as if the semaphore channels are blocking.
I'm not seeing any change (from GetVideoBitrate()) after using the above function.
Tello package v0.4.0, Tello firmware 1.03.33.01
Is this correct, you have Y ordered before X.
Also there is an "unused" bit between velocity and position validity. Is it really packed like this?
Line 275 in a195b65
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.