feat(firmware): BNO085 node, concentrador y listener PGN 127237
AR_electronics — AR-Autopilot Project Tarea #3 — firmware/ar_bno085_node_v1/ Nodo compacto ESP32+CAN lee heading y yaw rate del BNO085 via I2C y los publica en el backbone NMEA 2000 como PGN 127250+127251 a 10 Hz. Tarea #4 — firmware/ar_concentrador_v1/ Gateway NMEA2000<->NMEA0183 con 4 puertos OUT (UART1 TX broadcast) y 4 puertos IN (UART2 RX comandos). Parsea sentencias $PARP, gestiona autoridad de mando entre estaciones con timeout 10s y override del puente. Reenvía comandos autopilot como PGN 127237 al backbone. Tarea #5 — nmea2000_consumer (ar_autopilot_v1) Listener PGN 127237 entrante desde concentrador: HeadingControlSnapshot, HandleHeadingControl() con filtro source address, nmea2000_htc() publico, ventana stale 3s para comandos externos.
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
; =============================================================================
|
||||
; AR Concentrador NMEA2000-USB v1 -- firmware build configuration
|
||||
; =============================================================================
|
||||
;
|
||||
; Target hardware: AR-CONCENTRADOR v1.0 (ESP32-DOWD)
|
||||
; Role: Bidirectional NMEA 2000 <-> NMEA 0183 USB gateway.
|
||||
;
|
||||
; UART1 TX (GPIO17) → 4x CH340N → USB-OUT1..4 (broadcast NMEA 0183 data)
|
||||
; UART2 RX (GPIO16) ← 4x CH340N ← USB-IN1..4 (receive $PARP commands)
|
||||
; CAN TX (GPIO21) → MCP2562T → NMEA 2000 backbone
|
||||
; CAN RX (GPIO22) ← MCP2562T ← NMEA 2000 backbone
|
||||
;
|
||||
; Protocol: docs/concentrador_protocol.md
|
||||
; =============================================================================
|
||||
|
||||
[platformio]
|
||||
src_dir = src
|
||||
default_envs = esp32-dev
|
||||
|
||||
[env]
|
||||
platform = espressif32@^6.7.0
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
monitor_filters = esp32_exception_decoder, time
|
||||
build_flags =
|
||||
-std=gnu++17
|
||||
-DCORE_DEBUG_LEVEL=3
|
||||
-DAR_FW_VERSION=\"1.0.0\"
|
||||
-Wall
|
||||
-Wno-unused-parameter
|
||||
-Wno-missing-field-initializers
|
||||
build_unflags =
|
||||
-std=gnu++11
|
||||
lib_deps =
|
||||
ttlappalainen/NMEA2000-library@^4.22.0
|
||||
ttlappalainen/NMEA2000_esp32@^1.0.3
|
||||
|
||||
[env:esp32-dev]
|
||||
board = esp32dev
|
||||
build_type = release
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-Os
|
||||
|
||||
[env:esp32-debug]
|
||||
board = esp32dev
|
||||
build_type = debug
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
-O0
|
||||
-ggdb
|
||||
-DCORE_DEBUG_LEVEL=5
|
||||
Reference in New Issue
Block a user