telloArduino icon indicating copy to clipboard operation
telloArduino copied to clipboard

Example is not working...

Open Yuseungyong opened this issue 3 years ago • 5 comments

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

Yuseungyong avatar Nov 25 '20 16:11 Yuseungyong

Hi, I dont own the board you are mentioning but I just tested with Wrover 32 board along with Arudino 1.8.13(Which is the latest stable version of Arudino) and I could compile and flash just fine . I suggest you to try uninstalling your current version of Arudino and installing the latest version in case you are running an older version .

akshayvernekar avatar Nov 26 '20 16:11 akshayvernekar

now, i use Arduino 1.8.13ver. app in Window10... Hmm, i will try uninstalling my current Arduino and installing the this version not app but just program!

Yuseungyong avatar Nov 26 '20 17:11 Yuseungyong

I tried that.. Fail.. Maybe, There are conflict things in Aduino nano33 IoT board file. Until now, idont know how this problem solve

Yuseungyong avatar Nov 27 '20 02:11 Yuseungyong

It seems like this issue is not related to the library but ESP support on Arduino please check this link , see if it solves this issue https://stackoverflow.com/questions/41093090/esp8266-error-macro-min-passed-3-arguments-but-takes-just-2

akshayvernekar avatar Nov 27 '20 02:11 akshayvernekar

I just tried such as the issue, Note that, add #undef max #undef min right after # include <Tello. h> line. but it doesn't work

Yuseungyong avatar Nov 27 '20 03:11 Yuseungyong