zs6buj / AntTracker

Antenna Tracker for tracking a moving model aircraft or drone with a small high-gain UHF or SHF antenna
GNU General Public License v3.0
155 stars 42 forks source link

V2.22.9 with ESP32 Dev module, WiFi, GPS and Compass can't be compiled #86

Open GauchoFPV opened 1 month ago

GauchoFPV commented 1 month ago

Hi Eric, I tried to compile the latest version but got several errors:

image image

I could change WiFiUDP.h to WiFiUdp.h because I assume it got changed in the library but am not able to correct the other issues because I don't have any programming skills...

Could you help me please? Here is my config.h:

config.h.txt

Thank you and have a nice day

zs6buj commented 1 month ago

GauchoFPV: Thanks for the library name fix. Updated in v2.22.11.

In your config.h you have:

    #define SSD1306_DISPLAY         // OLED display type
    /* Below please choose either Touch pin-pair or Digital pin-pair for display scrolling
      *  Pin == -1 means the pin-pair is not used
      */
    #define Pup           -1        // Board Button 1 to scroll the display up
    #define Pdn           -1        // Board Button 2 to scroll the display down

If you #define SSD1306_DISPLAY, then you must define pageup(Pup) and pagedown(Pdn) gpio pins to scroll the display. I have used your config setup in v2.22.11. and I'm getting a clean compile here now.

GauchoFPV commented 1 month ago

Hi Eric,

thank you very much and shame on me!

I just found another small mistake in the antTrack.ino, Line 137 : #include --> #include "globals.h"

Now I can compile and upload it without problems, thank you so much!!!

zs6buj commented 1 month ago

Hi, It's best to use v2.22.11 if you can. But also v2.22.09 has globals.h included in the antTrack folder. image

GauchoFPV commented 1 month ago

Of course, I used 2.22.11 and globals.h was in the folder but Ibhad to replace the <> with "" to make it work.

zs6buj commented 1 month ago

Ah, ok, I understand now

zs6buj commented 1 month ago

Can we close this issue now?

GauchoFPV commented 1 month ago

Sorry, I'm not used to GitHub but yes, the ticket can be closed. Thank you very much!!!