Extend the FM-only ANTCAP antenna-varactor override to DAB, mirroring the existing mechanism end to end (driver, tuner, service, EEPROM storage, HTTP API). Live sweep on real hardware found no ANTCAP value beating auto-tune on the ensembles tested, so DAB stays on auto-tune by default. Also fix BT1035 boot: the module's real boot banner doesn't appear until ~18-24s after RESET# releases, not the 3.5s previously waited; add a 2-attempt retry and a baud-rate probe fallback for diagnostics. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
29 lines
769 B
C++
29 lines
769 B
C++
/**
|
|
* @file antenna_calibration.hpp
|
|
* @brief net::AntennaCalibration implementation over HardwareBootstrap.
|
|
*
|
|
* DigiRadio firmware — https://github.com/manvalan/DigiRadio
|
|
*
|
|
* Copyright 2026 Michele Bigi
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include "net/SetupWebServer.hpp"
|
|
|
|
namespace antenna_calibration {
|
|
|
|
/**
|
|
* @brief bridge — the process-lifetime AntennaCalibration instance.
|
|
*
|
|
* @dname bridge
|
|
* @return Function-pointer table bound to
|
|
* HardwareBootstrap::saveFmAntCapCalibration, for
|
|
* net::HttpRouteContext::antennaCalibration /
|
|
* POST /api/tuner/calibrate-antenna.
|
|
* @pubstate none
|
|
*/
|
|
[[nodiscard]] net::AntennaCalibration& bridge() noexcept;
|
|
|
|
} // namespace antenna_calibration
|