Budka posílá každých ~30 s po jednosměrném UARTu řádek `CB1 id=… t= h= p= v= i= w= wh= mot= up=…*XX` (NMEA XOR součet). BudkaLinkSensorManager je EnvironmentSensorManager + Serial1 RX: řádek se špatným součtem zahodí celý, hodnoty starší než 2 min do telemetrie nedává. Všechno z budky jde na jeden LPP kanál za čidly na desce; výkon jako analog input (LPP_POWER má rozlišení 1 W). TX UARTu je LED_GREEN — nic se nevysílá a klidová jednička ji drží zhasnutou. Zapíná se jen -D BUDKA_LINK_RX_PIN=<pin>; bez něj se nic nemění. Nový env Xiao_nrf52_sensor (upstream pro XIAO nRF sensor neměl). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
877 B
C
34 lines
877 B
C
#pragma once
|
|
|
|
#define RADIOLIB_STATIC_ONLY 1
|
|
#include <RadioLib.h>
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
|
#include <XiaoNrf52Board.h>
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h>
|
|
#include <helpers/AutoDiscoverRTCClock.h>
|
|
#include <helpers/ArduinoHelpers.h>
|
|
#include <helpers/sensors/EnvironmentSensorManager.h>
|
|
#ifdef BUDKA_LINK_RX_PIN
|
|
#include <helpers/sensors/BudkaLinkSensorManager.h>
|
|
#endif
|
|
|
|
#ifdef DISPLAY_CLASS
|
|
#include <helpers/ui/NullDisplayDriver.h>
|
|
#include <helpers/ui/MomentaryButton.h>
|
|
extern DISPLAY_CLASS display;
|
|
extern MomentaryButton user_btn;
|
|
#endif
|
|
|
|
extern XiaoNrf52Board board;
|
|
extern WRAPPER_CLASS radio_driver;
|
|
extern AutoDiscoverRTCClock rtc_clock;
|
|
#ifdef BUDKA_LINK_RX_PIN
|
|
extern BudkaLinkSensorManager sensors;
|
|
#else
|
|
extern EnvironmentSensorManager sensors;
|
|
#endif
|
|
|
|
bool radio_init();
|
|
mesh::LocalIdentity radio_new_identity();
|
|
|