Add +30dB external PA gain to ERP calculations and web UI display

Made-with: Cursor
This commit is contained in:
drjones
2026-04-03 21:34:35 -07:00
parent 51c561b9a9
commit 1ba65a59df
2 changed files with 9 additions and 8 deletions

View File

@@ -24,9 +24,10 @@
// Web server
#define WEB_PORT 80
// Jamming: max CC1101 TX (+10 dBm). External PA removed — radiated power is chip + antenna gain only.
// Jamming: max CC1101 TX (+10 dBm). External PA gain added to ERP calculation.
// Jam always starts after boot self-test; use web “Stop Jamming” (or capture REC) to pause for RX/capture.
#define DEFAULT_AUTO_START_JAM true
#define JAM_EXT_PA_GAIN_DB 30 // Gain of external RF amplifier (e.g. 30 dB / 1 Watt)
// CC1101 only accepts 8 discrete power levels (index 0-7); jam path always uses max (10 dBm).
#define JAM_POWER_LEVELS 8
#define DEFAULT_JAM_POWER_IDX 7 // 10 dBm — full device output (see TI SWRS061 PATABLE / output power)