From e1dd4a76477ff1ff94091d555d88e00d3abc5ef5 Mon Sep 17 00:00:00 2001 From: tunapro Date: Wed, 24 Dec 2025 18:24:39 +0300 Subject: [PATCH 1/3] disable logger --- src/platform/esp32s3/web/index_html.h | 1 + src/probot/logging/logger.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/platform/esp32s3/web/index_html.h b/src/platform/esp32s3/web/index_html.h index 5be22bc..223bb14 100644 --- a/src/platform/esp32s3/web/index_html.h +++ b/src/platform/esp32s3/web/index_html.h @@ -21,6 +21,7 @@ const char MAIN_page[] PROGMEM = R"=====( font-family:"Inter","Segoe UI",sans-serif; } *{margin:0;padding:0;box-sizing:border-box;} + #logging{display:none;} /* Logging section hidden for now */ body{ min-height:100vh; background:var(--ice); diff --git a/src/probot/logging/logger.cpp b/src/probot/logging/logger.cpp index 5808f01..43d135b 100644 --- a/src/probot/logging/logger.cpp +++ b/src/probot/logging/logger.cpp @@ -1010,13 +1010,14 @@ void notifySchedulerOverrun(uint32_t now_ms, uint32_t overrun_ms){ void configureDefaults(){ LoggingManager& mgr = LoggingManager::instance(); - mgr.enableSerial(true); + mgr.enableSerial(false); // Default: kapalı mgr.setSerialBandwidth(BandwidthMode::kNormal); mgr.enableWifi(false); mgr.setWifiBandwidth(BandwidthMode::kLow); -#ifndef PROBOT_LOGGER_NO_SCHED_ATTACH - control::attach(&mgr); -#endif +// Logger scheduler'a baglanmiyor - varsayilan olarak kapali +// #ifndef PROBOT_LOGGER_NO_SCHED_ATTACH +// control::attach(&mgr); +// #endif } void enableSerialLogging(bool enabled){ From 2ce5e99a6d64f72d719627221325dcf81b375c73 Mon Sep 17 00:00:00 2001 From: tunapro Date: Wed, 24 Dec 2025 19:23:45 +0300 Subject: [PATCH 2/3] joystick pileup protection --- .gitignore | 4 +++- src/platform/esp32s3/web/index_html.h | 13 +++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ccd7975..e77605f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ # Local scripts -liner.py +liner.py tests/control_tests .build/ +review/ +tuna_test/ diff --git a/src/platform/esp32s3/web/index_html.h b/src/platform/esp32s3/web/index_html.h index 223bb14..1b7f63f 100644 --- a/src/platform/esp32s3/web/index_html.h +++ b/src/platform/esp32s3/web/index_html.h @@ -1341,8 +1341,15 @@ function stopAutoTimer(){ selectedGamepadIndex=parseInt(val,10); if(isNaN(selectedGamepadIndex)) selectedGamepadIndex=-1; } + let gamepadSending=false; + let lastGamepadSend=0; + const GAMEPAD_SEND_INTERVAL=20; // 50Hz max async function sendGamepadData(gp){ - const data={axes:gp.axes,buttons:gp.buttons.map(b=>b.pressed)}; + const now=performance.now(); + if(gamepadSending || (now-lastGamepadSend)b.pressed)}; try{ await fetch("/updateController",{ method:"POST", @@ -1351,6 +1358,8 @@ function stopAutoTimer(){ }); }catch(err){ console.error(err); + }finally{ + gamepadSending=false; } } function displayJoystickData(gp){ @@ -1412,7 +1421,7 @@ if(loggingElements.autoScroll) loggingElements.autoScroll.addEventListener('chan autoRemaining=parseFloat(document.getElementById('autoPeriod').value)||0; updateAutoDisplay(); setPhaseDisplay('standby'); - applyHeaderMode(); + // applyHeaderMode(); // TODO: header mode switching removed for now handleLoggingRefresh(); if(loggingElements.autoRefresh){ setLoggingAutoRefresh(loggingElements.autoRefresh.checked); From f101a9bbaad6a221450dff98a2c1923f3446f2a8 Mon Sep 17 00:00:00 2001 From: tunapro Date: Wed, 24 Dec 2025 19:53:08 +0300 Subject: [PATCH 3/3] bump version --- library.json | 2 +- library.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.json b/library.json index 8649faf..bd208ee 100644 --- a/library.json +++ b/library.json @@ -26,5 +26,5 @@ "type": "git", "url": "https://github.com/nfrproducts/probot-lib" }, - "version": "0.1.4" + "version": "0.1.5" } diff --git a/library.properties b/library.properties index 39712d3..2643abc 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=probot -version=0.1.4 +version=0.1.5 author=Tuna Gül maintainer=Tuna Gül sentence=ProBot Library for Robotics Competitions.