mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-predict - Added support for 10 and 50 watt power levels
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user