Skip to content

feat: GPS webserver hosted on esp32#2

Open
KrzysKond wants to merge 6 commits into
masterfrom
gps-webserver
Open

feat: GPS webserver hosted on esp32#2
KrzysKond wants to merge 6 commits into
masterfrom
gps-webserver

Conversation

@KrzysKond
Copy link
Copy Markdown

@KrzysKond KrzysKond commented May 25, 2026

Needs to be tested

Copy link
Copy Markdown
Member

@patrickthemoon patrickthemoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PODSUMOWANIE, spoko kod, na razie nie mergujemy do mastera, żeby jednak nie mieszać http do esp w rakiecie

Comment thread src/esp32s3/esp32s3.ino Outdated
#include <RadioLib.h> // from RadioLib by Jan Gromes v7.6.0
#include <TinyGPS++.h> // from TinyGPSPlus by Mikal Hart v1.0.3
#include "simba_headers/simba/mavlink.h" // generated from simba.xml
#include <WiFi.h>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tutaj daj komentarz z jakiej to bilbioteki w jakiej wersji (tak jak wyżej)

Comment thread src/esp32s3/esp32s3.ino Outdated
#include <TinyGPS++.h> // from TinyGPSPlus by Mikal Hart v1.0.3
#include "simba_headers/simba/mavlink.h" // generated from simba.xml
#include <WiFi.h>
#include <WebServer.h>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tutaj daj komentarz z jakiej to bilbioteki w jakiej wersji (tak jak wyżej)

Comment thread src/esp32s3/esp32s3.ino Outdated
#define WIFI_AP_IP "192.168.10.131"
#define WEB_REFRESH_SEC 10

#define LAT_BUNKER 35.346444
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tę lokalizację trzeba zmienić na lokalizację setup area (ta pół kilometra od launch site) bo recovery ma wrócić do namiotów, a nie do launch site bo to niebezpieczne, niezgodne z regulaminem itp

Comment thread src/esp32s3/esp32s3.ino Outdated
#define WEB_REFRESH_SEC 10

#define LAT_BUNKER 35.346444
#define LON_BUNKER -117.808194
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

Comment thread src/esp32s3/esp32s3.ino
while (true);
}

if (radioStatus.mode == RadioMode::TRANSCEIVER) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to bym jednak zmienił na coś w stylu if RECOVERY_RADIO (i wszędzie gdzie dotyczy webservera)
a transciever zostawił osobno, bo jednak ma inną funkcję (moja wina, źle zaplanowałem jak to zrobić)

Comment thread src/esp32s3/esp32s3.ino

if (millis() - lastSend < TX_INTERVAL_MS) {
unsigned long interval = (radioStatus.mode == RadioMode::TRANSCEIVER)
? TX_INTERVAL_TRANSCEIVER_MS
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fajne

Comment thread src/esp32s3/esp32s3.ino
html += WEB_REFRESH_SEC;
html += F(" s</p></body></html>");
webServer.send(200, "text/html", html);
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PODSUMOWANIE, spoko kod, na razie nie mergujemy do mastera, żeby jednak nie mieszać http do esp w rakiecie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants