hamlib/tests/amptest.sh
Daniele Forsi IU5HKX 3c7b3dafcf
Read the frequency just set and fix typos
Since ampctl is using the dummy driver, the status is reset at
every run and it can't read the value set during the previous run.
2025-08-18 07:47:14 -05:00

21 lines
633 B
Bash
Executable file

#!/bin/sh
# for the dummy amp values toggle between two likely values one each call
# Note FAULT is a string return
./ampctl l FAULT l FAULT
# Note SWR is a float return
./ampctl l SWR l SWR
# All other values are integer
./ampctl l NH l NH
./ampctl l PF l PF
./ampctl l PWRINPUT l PWRINPUT
./ampctl l PWRFORWARD l PWRFORWARD
./ampctl l PWRREFLECTED l PWRREFLECTED
./ampctl l PWRPEAK l PWRPEAK
# Powerstat 0=Off, 1=On, 2=Standby, 4=Operate, 8=Unknown
./ampctl \set_powerstat 0
./ampctl \set_powerstat 1
./ampctl \set_powerstat 2
./ampctl \set_powerstat 4
./ampctl \set_powerstat 8
# Sets/reads tuner frequency
./ampctl F 14074000 f