Snapshot iniziale: bridge telemetria CRSF->LTM/MAVLink (ESP-NOW)
Stato di partenza prima dei fix. Il repo git era inizializzato a meta' (config.lock + objects/ mancante, zero commit): riparato. my_config.h (UID reale, tutti e 3 i sottoprogetti) escluso via .gitignore; aggiunto my_config.h.example. .pio/ escluso. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
61
02_telemetry_bridge/platformio.ini
Normal file
61
02_telemetry_bridge/platformio.ini
Normal file
@@ -0,0 +1,61 @@
|
||||
; ============================================================
|
||||
; INAV Telemetry Bridge - firmware unico multi-modo
|
||||
; Target: ESP32 DevKit (ESP32-WROOM)
|
||||
;
|
||||
; Platform PINNATA a 6.9.0 (arduino-esp32 2.0.17): la callback
|
||||
; ESP-NOW usa la firma del core 2.x. Col core 3.x (platform 7.x)
|
||||
; va adattata onRecv() in lib/EspNowCrsf/EspNowCrsf.cpp.
|
||||
; ============================================================
|
||||
|
||||
[env:esp32dev]
|
||||
platform = espressif32@6.9.0
|
||||
board = esp32dev
|
||||
framework = arduino
|
||||
|
||||
monitor_speed = 115200
|
||||
monitor_filters = esp32_exception_decoder
|
||||
upload_protocol = esptool
|
||||
|
||||
; terseCRSF e' VENDORIZZATO in lib/terseCRSF (copia patchata: debug SHOW_*
|
||||
; disattivati, vedi il commento in cima a lib/terseCRSF/src/terseCRSF.h).
|
||||
; Non piu' via lib_deps per non perdere le patch a ogni update dei pacchetti.
|
||||
lib_deps =
|
||||
|
||||
build_flags =
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
; libreria MAVLink ufficiale vendorizzata in lib/mavlink (header-only):
|
||||
; serve l'include base perche' i dialetti si includono come <common/mavlink.h>
|
||||
-I lib/mavlink
|
||||
|
||||
; Questo env e' SOLO per il firmware reale (pio run / upload):
|
||||
; non builda mai i test, cosi' UNIT_TEST non e' mai definita qui.
|
||||
test_ignore = test_*
|
||||
|
||||
; ============================================================
|
||||
; Test on-device (Unity via USB, niente catena RF): stesso target
|
||||
; fisico di esp32dev ma con UNIT_TEST definita, che abilita gli
|
||||
; hook #ifdef UNIT_TEST in lib/EspNowCrsf (test_injectRaw/test_reset).
|
||||
; Il firmware di produzione sopra non eredita mai questo flag.
|
||||
; ============================================================
|
||||
[env:esp32dev_test]
|
||||
extends = env:esp32dev
|
||||
build_flags =
|
||||
${env:esp32dev.build_flags}
|
||||
-D UNIT_TEST
|
||||
test_ignore = test_native_*
|
||||
|
||||
; ============================================================
|
||||
; Test nativi (no hardware) per la logica pura in lib/Ltm.
|
||||
; EspNowCrsf e' escluso: dipende da WiFi/esp_now, non disponibile
|
||||
; fuori da ESP32. Arduino.h e' uno shim in test/native_stubs.
|
||||
; ============================================================
|
||||
[env:native]
|
||||
platform = native
|
||||
build_flags =
|
||||
-std=gnu++14
|
||||
-I test/native_stubs
|
||||
lib_ignore =
|
||||
EspNowCrsf
|
||||
terseCRSF
|
||||
mavlink
|
||||
test_filter = test_native_*
|
||||
Reference in New Issue
Block a user