From f4879c4460fb1aa748d9ea31331cf2c02eeebc40 Mon Sep 17 00:00:00 2001 From: Filippo Bottega Date: Tue, 31 Jul 2018 10:35:22 +0200 Subject: [PATCH] Update README.md This sample doesn't compile because: drone := new(Tello) as to be changed in: drone := new(tello.Tello) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 269b5ad..170b498 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ import ( ) func main() { - drone := new(Tello) + drone := new(tello.Tello) err := drone.ControlConnectDefault() if err != nil { log.Fatalf("%v", err) @@ -60,4 +60,4 @@ You must establish a control connection to use the drone, but the video connecti Certain functionality is made available in two forms: single-shot function calls and streaming (channel) data flows. Eg. GetFlightData() vs. StreamFlightData(), and UpdateSticks() vs. StartStickListener(). -Use whichever paradigm you prefer, but be aware that the channel-based calls should return immediately (the channels are buffered) whereas the function-based options could conceivably cause your application to pause very briefly if the Tello is very busy; in practice, the author has not found this to be an issue. \ No newline at end of file +Use whichever paradigm you prefer, but be aware that the channel-based calls should return immediately (the channels are buffered) whereas the function-based options could conceivably cause your application to pause very briefly if the Tello is very busy; in practice, the author has not found this to be an issue.