akshayvernekar / telloarduino Goto Github PK
View Code? Open in Web Editor NEWOpen source arudino library for controlling tello through ESP32
Open source arudino library for controlling tello through ESP32
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
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 ?
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.
The Title is self explaining I guess.
Greeting
Tobi
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
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.
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)'
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.