akshayvernekar / telloArduino

Open source arudino library for controlling tello through ESP32
33 stars 17 forks source link

Example is not working... #6

Open Yuseungyong opened 3 years ago

Yuseungyong commented 3 years ago

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

akshayvernekar commented 3 years ago

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 .

Yuseungyong commented 3 years ago

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 commented 3 years ago

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

akshayvernekar commented 3 years ago

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

Yuseungyong commented 3 years ago

I just tried such as the issue, Note that, add

undef max

undef min

right after # include line. but it doesn't work