firmware: rolling-hour duty-cycle guard (0.1% default) with measured justification

This commit is contained in:
Lars Nolden
2026-09-01 11:33:04 +02:00
parent 6633cd6f92
commit cafc9dff26
4 changed files with 105 additions and 3 deletions
+2
View File
@@ -16,6 +16,7 @@ typedef struct {
uint64_t tx_airtime_us; // cumulative, for duty-cycle accounting
uint32_t tx_failures;
uint32_t tx_suppressed_dup;
uint32_t tx_suppressed_duty; // blocked by the duty-cycle guard
uint32_t tx_suppressed_whitelist;
uint32_t radio_reinit;
uint32_t fem_reinit;
@@ -24,6 +25,7 @@ typedef struct {
typedef struct {
uint32_t repeat_delay_ms; // 20..200
uint32_t duty_budget_ppm; // rolling-hour TX airtime cap, 0 = disabled
int8_t tx_power_dbm; // configured SX1262 level, not radiated power
bool repeat_enabled;
bool verbose;