mirror of
https://github.com/Hamlib/Hamlib
synced 2026-08-13 17:32:05 -04:00
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.
21 lines
633 B
Bash
Executable file
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
|