et-predict - Added support for 10 and 50 watt power levels

This commit is contained in:
thetechprepper
2025-11-12 07:27:41 -07:00
parent 6647358ed3
commit cf23a8b7ba
@@ -143,7 +143,7 @@ usage() {
echo "ETC GPS unit or fallback to the grid square configured by 'et-user'."
echo
echo "Other options (required):"
echo " -p POWER Output power [5|20|100|500|1500]"
echo " -p POWER Output power [5|10|20|50|100|500|1500]"
echo " -m MODE Mode [am|ardop|cw|js8|ssb]"
echo
@@ -288,15 +288,22 @@ RK1=$( awk -v n1=$RK -v n2=180 -v n3=-180 'BEGIN {if (n1<n3 || n1>n2) printf ("%
RLO=$( awk -v n1=$RK1 -v n2=0 'BEGIN {if (n1<n2) { n1=substr(n1,2); printf ("%7sW", n1); } else printf ("%7sE", n1);}' )
# Power settings
# Use 80% of user-defined power and express in killiwatts
# TODO: Make calculation dynamic.
# Use 80% of user-defined power and express it in killiwatts since VOACAP's
# power setting is the power at the feedpoint not the transmitter.
#
# PW=(PWR×0.8)/1000
#
PWR=$power
PW="0.0800"
echo "TX Power: ${PWR} watts"
if [ "$PWR" = "5" ]; then
PW="0.0040"
elif [ "$PWR" = "10" ]; then
PW="0.0080"
elif [ "$PWR" = "20" ]; then
PW="0.0160"
elif [ "$PWR" = "50" ]; then
PW="0.0400"
elif [ "$PWR" = "100" ]; then
PW="0.0800"
elif [ "$PWR" = "500" ]; then