Add saved regulator modes and battery-gated crash recovery

This commit is contained in:
mikecarper committed 2026-10-18 21:10:58 -07:00
1 parent 515bb57cdf
commit c4a1d485ff
70 files changed
+5335 -2472

No files matched your search

+7
View File
@@ -10,6 +10,7 @@
#include <helpers/MorseRx.h>
#include <helpers/AGCResetScheduler.h>
#include <helpers/BeaconConfig.h>
#include <helpers/RegulatorMode.h>
#ifndef RADIO_LIVENESS_SOFT_ONLY
#include <helpers/RadioLivenessTracker.h>
#endif
@@ -36,6 +37,12 @@ public:
*/
class Radio {
public:
virtual uint8_t regulatorModes() const { return 0; }
virtual power::RegulatorMode defaultRegulatorMode() const { return power::RegulatorMode::Default; }
// Cache a selection before the first hardware initialization. Save later
// choices for the next reboot; never change a live RX/TX regulator here.
virtual bool configureBootRegulator(power::RegulatorMode) { return false; }
virtual power::RegulatorMode activeRegulatorMode() const { return power::RegulatorMode::Default; }
static constexpr uint32_t CarrierWaveDefaultMillis = 10000;
static constexpr uint32_t CarrierWaveMaxMillis = 60000;
virtual bool supportsCarrierWave() const { return false; }