Add bias_t parameter to build_adsb_command()

Completes bias-T support across all SDR command builder methods.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 12:17:02 +00:00
parent 41ebf59964
commit 471cc1ee94
5 changed files with 21 additions and 5 deletions

View File

@@ -96,7 +96,8 @@ class HackRFCommandBuilder(CommandBuilder):
def build_adsb_command(
self,
device: SDRDevice,
gain: Optional[float] = None
gain: Optional[float] = None,
bias_t: bool = False
) -> list[str]:
"""
Build dump1090/readsb command with SoapySDR support for ADS-B decoding.
@@ -116,6 +117,9 @@ class HackRFCommandBuilder(CommandBuilder):
if gain is not None:
cmd.extend(['--gain', str(int(gain))])
if bias_t:
cmd.extend(['--enable-bias-t'])
return cmd
def build_ism_command(