Giter VIP home page Giter VIP logo

telloarduino's Introduction

alt text

telloarduino's People

Contributors

akshayvernekar avatar shubhamlall avatar tobiasfrahm 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telloarduino's Issues

Example is not working...

HI! I just try Tello_example with Arduino nano33 IoT(imbeded ESP32).
But the error below occurs... i dont know what it is...

Error message :

In file included from c:\users\82102\documents\arduinodata\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\char_traits.h:39:0,

             from c:\users\82102\documents\arduinodata\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\string:40,

             from C:\Users\82102\Documents\Arduino\libraries\tello/Tello.h:14,

             from C:\Users\82102\AppData\Local\Temp\arduino_modified_sketch_40785\tello_example.ino:1:

c:\users\82102\documents\arduinodata\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:243:55: error: macro "min" passed 3 arguments, but takes just 2

min(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                   ^

c:\users\82102\documents\arduinodata\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\bits\stl_algobase.h:265:55: error: macro "max" passed 3 arguments, but takes just 2

max(const _Tp& __a, const _Tp& __b, _Compare __comp)

                                                   ^

exit status 1

API Usage

How we can use this(API usage
// 1. Create the object
Tello tello

// 2. Initialise the Object after your device gets the IP address
tello.init()

// 3 .Once the object is initalised you can use the various fubnctions to send commands to tello.) section ?

wifievent problem

I have this error, any solution? im begginer

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

tello_example:64:16: error: variable or field 'WiFiEvent' declared void

void WiFiEvent(WiFiEvent_t event)

            ^

tello_example:64:16: error: 'WiFiEvent_t' was not declared in this scope

C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino: In function 'void connectToWiFi(const char*, const char*)':

tello_example:53:23: error: no matching function for call to 'WiFiClass::disconnect(bool)'

WiFi.disconnect(true);

                   ^

C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino:53:23: note: candidate is:

In file included from C:\Users\neuro\Documents\Arduino\libraries\tello/Tello.h:12:0,

             from C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:130:9: note: int WiFiClass::disconnect()

 int disconnect(void);

     ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:130:9: note: candidate expects 0 arguments, 1 provided

tello_example:55:8: error: 'class WiFiClass' has no member named 'onEvent'

WiFi.onEvent(WiFiEvent);

    ^

tello_example:55:16: error: 'WiFiEvent' was not declared in this scope

WiFi.onEvent(WiFiEvent);

            ^

tello_example:58:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

WiFi.begin(ssid, pwd);

                   ^

In file included from C:\Users\neuro\Documents\Arduino\libraries\tello/Tello.h:12:0,

             from C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:79:9: error: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' [-fpermissive]

 int begin(char* ssid, const char *passphrase);

     ^

C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino: At global scope:

tello_example:64:16: error: variable or field 'WiFiEvent' declared void

void WiFiEvent(WiFiEvent_t event)

            ^

tello_example:64:16: error: 'WiFiEvent_t' was not declared in this scope

exit status 1

variable or field 'WiFiEvent' declared void

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

void Tello::init()

Hello, am I right, that the drone is always initialised? Even if the response.compare("ok") is not true?
Is this intended?

void Tello::init()
{
	udpclient = new WiFiUDP();
	//This initializes udp and transfer buffer
	udpclient->begin(COMMAND_PORT);
	isInitialised = true;
	string response = sendCommand("command");
	//if response is other than "ok" then we consider as error 
	if(response.compare("ok"))
	{
		isInitialised = true;
	}
}

Greetings
Tobi

Example code is not working

Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

tello_example:63:16: error: variable or field 'WiFiEvent' declared void

void WiFiEvent(WiFiEvent_t event)

            ^

tello_example:63:16: error: 'WiFiEvent_t' was not declared in this scope

F:\telloArduino-master\tello_example\tello_example.ino: In function 'void connectToWiFi(const char*, const char*)':

tello_example:52:23: error: no matching function for call to 'WiFiClass::disconnect(bool)'

WiFi.disconnect(true);

                   ^

F:\telloArduino-master\tello_example\tello_example.ino:52:23: note: candidate is:

In file included from C:\Users\R\Documents\Arduino\libraries\tello/Tello.h:12:0,

             from F:\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:130:9: note: int WiFiClass::disconnect()

 int disconnect(void);

     ^

C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:130:9: note: candidate expects 0 arguments, 1 provided

tello_example:54:8: error: 'class WiFiClass' has no member named 'onEvent'

WiFi.onEvent(WiFiEvent);

    ^

tello_example:54:16: error: 'WiFiEvent' was not declared in this scope

WiFi.onEvent(WiFiEvent);

            ^

tello_example:57:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

WiFi.begin(ssid, pwd);

                   ^

In file included from C:\Users\R\Documents\Arduino\libraries\tello/Tello.h:12:0,

             from F:\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: error: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' [-fpermissive]

 int begin(char* ssid, const char *passphrase);

     ^

F:\telloArduino-master\tello_example\tello_example.ino: At global scope:

tello_example:63:16: error: variable or field 'WiFiEvent' declared void

void WiFiEvent(WiFiEvent_t event)

            ^

tello_example:63:16: error: 'WiFiEvent_t' was not declared in this scope

Multiple libraries were found for "SPI.h"
Used: C:\Users\R
Multiple libraries were found for "Tello.h"
Used: C:\Users\R
Not used: C:\Users\R
Multiple libraries were found for "WiFi.h"
Used: C:\Program
Multiple libraries were found for "ESP8266WiFi.h"
Used: C:\Users\R
exit status 1
variable or field 'WiFiEvent' declared void

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Example is not working with problem Wifi connect issue

I solved previous issue (min & max).. but i have a problem with wifi issue below..
Do you know anything about this?

error message:

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: In function 'void connectToWiFi(const char*, const char*)':

tello_example:53:24: error: no matching function for call to 'WiFiClass::disconnect(bool)'

WiFi.disconnect(false);

                    ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:130:9: note: candidate: int WiFiClass::disconnect()

 int disconnect(void);

     ^~~~~~~~~~

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:130:9: note: candidate expects 0 arguments, 1 provided

tello_example:55:8: error: 'class WiFiClass' has no member named 'onEvent'

WiFi.onEvent(WiFiEvent);

    ^~~~~~~

tello_example:55:16: error: 'WiFiEvent' was not declared in this scope

WiFi.onEvent(WiFiEvent);

            ^~~~~~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:55:16: note: suggested alternative: 'WiFiClient'

WiFi.onEvent(WiFiEvent);

            ^~~~~~~~~

            WiFiClient

tello_example:58:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]

WiFi.begin(ssid, pwd);

                   ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:79:9: note: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)'

 int begin(char* ssid, const char *passphrase);

     ^~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: At global scope:

tello_example:64:3: error: expected unqualified-id before 'switch'

switch (event)

^~~~~~

tello_example:80:1: error: expected declaration before '}' token

}

^

exit status 1

no matching function for call to 'WiFiClass::disconnect(bool)'

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.