Commit Graph

6 Commits

Author SHA1 Message Date
a6ba463c4c Reduce UART buffer flush threshold from 512 to 64 bytes
Prevents MAVLink frames from being split at the 512-byte boundary
into two UDP packets. With 64B threshold + 3ms inactivity timeout,
each MAVLink frame (9-280 bytes) fits in a single UDP packet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 16:26:49 +02:00
fee9c23a15 Buffer UART bytes before UDP send — fix MAVLink frame fragmentation
Accumulate UART bytes and flush to UDP only when buffer is full (512B)
or after 3ms of UART inactivity (end-of-frame gap). Fixes mavp2p
"packet too short" / "invalid magic byte" errors caused by sending
partial MAVLink frames in separate UDP packets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 16:18:05 +02:00
e090ef14bc Replace test heartbeat with transparent UART↔UDP MAVLink bridge
H743 FC is now wired to Serial2 (RX=GPIO18, TX=GPIO17, 57600 baud).
ESP32 becomes a raw byte relay: UART→UDP and UDP→UART on port 14550.
Removed fake heartbeat generator — real heartbeat comes from H743.
Added byte counters with periodic stats log every 10s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 12:54:01 +02:00
44889a1084 Change UART RX pin from GPIO16 to GPIO18
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 12:33:36 +02:00
c6e488e0e2 Switch to STA mode (MODE_AP false) — connexion hotspot Jetson WireClaw
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 17:43:08 +02:00
ba3221ae4f Initial commit — firmware WireClaw ESP32-S3 fonctionnel
- Heartbeat MAVLink v1 toutes les 1s (broadcast 192.168.4.255:14553)
- Relais WiFi <-> UART (Jetson <-> Pi Zero) sur ports 14550-14553
- LED RGB WS2812 GPIO48 : rouge pulsé (attente), vert dim (idle), flash vert (heartbeat)
- MODE_AP=true : hotspot WireClaw-CAM / false : connexion Jetson
- Fix: retrait ARDUINO_USB_CDC_ON_BOOT (carte Freenove utilise CH343/UART0)
2026-06-03 18:34:14 +02:00