Skip to content

Cleanup#20

Merged
tunapro1234 merged 14 commits into
stablefrom
dev
Feb 7, 2026
Merged

Cleanup#20
tunapro1234 merged 14 commits into
stablefrom
dev

Conversation

@tunapro1234
Copy link
Copy Markdown
Collaborator

No description provided.

tunapro1234 and others added 14 commits February 3, 2026 19:10
ProHub kartı için temel altyapı - inner loop PID, UART encoder,
PCA9685 motor sürücü desteği.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Drop motors, sensors, control, command framework, test mocks,
scheduler_registry, and robotics examples. Update naming
(Probot, Driver Station) and library metadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove prohub/ module (PID, inner loop, PCA motor, encoder)
- Remove stale robotics tests (10 files)
- Add teleopEnd() and autonomousEnd() lifecycle hooks
- Add probot::print/println/printf telemetry shortcuts
- Simplify JoystickTest example
- Gitignore workspace files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add /health endpoint returning RSSI, uptime, free heap, deadline miss
- Add connection status bar in header (signal bars, ping, RAM)
- Add DISCONNECTED overlay after 3 consecutive health check failures
- Add DEADLINE MISS overlay when user code blocks teleop/auto loop
- Loop heartbeat mechanism: workers update timestamp each iteration,
  userLoopTask flags deadlineMiss if stale >2s, LED blinks red
- Reverse SSID MAC suffix logic: off by default when SSID is set,
  auto-generated Probot-XXXXXX with compiler warning when not set

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Breaking change — existing sketches don't define these functions.
Keep the simpler 0.2.x API surface, add lifecycle hooks in 0.3.x.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Kill stuck task and recover (auto→teleop, teleop→restart)
- LED blinks red for 3s then auto-clears
- Replace full-screen overlay with slide-down toast (5s auto-dismiss)
- Robot stays operational after deadline miss

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Deadline miss writes warning to telemetry buffer instead of UI toast
- Move System Logs to left column, Telemetry fills right column
- Telemetry panel extends to bottom of viewport
- Remove dm-toast CSS/HTML/JS, add CSP meta tag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… info

/info endpoint now returns chip model, CPU freq, SDK version,
heap total, flash total, sketch size, free sketch space, and PSRAM.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…elease/reject)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename userLoopTask → watchdogTask, move from Core 1 (CORE_CTRL) to
Core 0 (CORE_UI) so deadline miss detection works even if user code
completely blocks Core 1. Priority raised to PRIO_CTRL (4).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename watchdog/heartbeat task → sysloopTask (Core 0, PRIO_CTRL)
- Add g_ds_last_activity_ms: DS HTTP/WS handlers update on every request
- sysloop checks DS activity: no request for PROBOT_DS_TIMEOUT_MS (default
  10s) → robot STOP + owner release + WS cleanup + Serial/telemetry log
- Teleop deadline miss now only warns, no longer kills/restarts the task
- Add WsJoystick::closeAll() and DriverStation::forceDisconnect()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace dual-server setup (Arduino WebServer port 80 + ESP-IDF httpd port 81)
with a single ESP-IDF httpd on port 80. Fixes socket exhaustion and UI
freeze issues caused by Arduino WebServer's weak connection handling.

- All 8 HTTP routes + WS /joystick on single ESP-IDF httpd (port 80)
- WsJoystick: begin(port) → attach(httpd_handle_t), no longer owns server
- Owner enforcement rewritten with getpeername() + inet_ntop()
- PROGMEM HTML served via httpd_resp_send_chunk (2KB chunks)
- Removed Arduino WebServer polling task (ESP-IDF httpd self-manages)
- expireOwnerIfIdle() called from sysloop instead of handleClient()
- WS URL updated: ws://host:81/joystick → ws://host/joystick

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tunapro1234 tunapro1234 merged commit fa65b78 into stable Feb 7, 2026
1 check passed
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.

1 participant