echo"${BOLD}DO you want to set the 1090mhz SDR to Fall Back to 978mhz in the event of the 978mhx SDR failing inflight?${NORM}"
echo"If no serials are set on any of the attached SDRs then STRATUX will assign 978mhz to the first SDR found and 1090mhz to the remaining SDR. This is a safety featre of STRATUX to always allow users to always have access to WEATHER and METAR data in the event of one SDR failing in flight. "
echo" "
echo"When a user assigns a frequency to an SDR, via setting serials, STRATUX will always assign that frequency. NO MATTER WHAT."
echo"This could cause issues if an SDR fails in flight. If the 978mhz SDR fails in flight and the other SDR is assigned the 1090 serial this SDR will never be set to 978mhz and the user will not have access to WEATHER and METAR data"
echo" "
echo"Choosing the Fall Back mode will allow the remaining SDR to be assigned to 978mhz while keeping the PPM value, allowing the user to continue to receive WEATHER and METAR data."
echo"Fall Back mode is reccomended!"
choices=('FallBack''1090mhz''exit')
# Present the choices.
# The user chooses by entering the *number* before the desired choice.
select choice in "${choices[@]}";do
# If an invalid number was chosen, $choice will be empty.
echo"${DIM}If you have tuned antennas make sure you have the correct SDR and antenna combination hooked up at this time and remember which antenna connection is for which antenna.${NORM}"
choices=('978mhz''1090mhz''exit')
# Present the choices.
# The user chooses by entering the *number* before the desired choice.
select choice in "${choices[@]}";do
# If an invalid number was chosen, $choice will be empty.
# Getting here means that a valid choice was made,
# so break out of the select statement and continue below,
# if desired.
# Note that without an explicit break (or exit) statement,
# bash will continue to prompt.
break
done
}
function START {
echo"Help documentation for ${BOLD}${SCRIPT}.${NORM}"
echo" "
echo"This script will help you in setting your SDR serials. Please read carefully before continuing. There are many options in settings the SDR serials. Programming the SDR serials does 2 things. "
echo" "
echo"${BOLD}First:${NORM}"
echo"Setting the serials will tell your STRATUX which SDR is attached to which tuned antenna."
echo" "
echo"${BOLD}Second:${NORM}"
echo"Setting the PPM value will enhance the reception of your SDR by correcting the Frequency Error in each SDR. Each PPM value is unique to each SDR. For more info on this please refer to the Settings page in the WebUI and click on the Help in the top right."
echo" "
echo"Steps we will take:"
echo"1) Make sure you have ${BOLD}${REV}ONLY ONE${NORM} SDR plugged in at a time. Plugging in one SDR at a time will ensure they are not mixed up."
echo"2) Select which SDR we are setting the serial for."
echo"3) Add a PPM value. If you do not know or do not want to set this value this will be set to 0. "
echo"4) Write the serial to the SDR."
echo" "
echo"If you are ready to begin choose ${BOLD}Continue${NORM} to begin."
echo" Continuing will stop the STRATUX service to release the SDRs for setting the serials"
choices=('Continue''Exit')
# Present the choices.
# The user chooses by entering the *number* before the desired choice.
select choice in "${choices[@]}";do
# If an invalid number was chosen, $choice will be empty.