CatRotator compatibility

merge-requests/237/merge
Sebastian Delmont 2022-11-12 20:16:11 -05:00
rodzic ee83005ac4
commit 4db05c414e
2 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -2445,7 +2445,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<th data-i18n="settings.logging.otherheader.details">Details</th>
</tr>
<tr>
<td data-i18n="settings.logging.pstrotator.label">PSTRotator</td>
<td data-i18n="settings.logging.pstrotator.label">CatRotator / PstRotator</td>
<td>
<input type="checkbox" checked="false" class="inputTextValue" id="pstrotatorCheckBox"
onclick=" ValidateIPaddress(pstrotatorIpInput, this); ValidatePort(pstrotatorPortInput, this, null ); pstrotatorServiceChanged(); " />

Wyświetl plik

@ -55,15 +55,17 @@ function aimRotator(info) {
g_pstrotatorSettings.enable == true &&
g_pstrotatorSettings.port > 0 &&
g_pstrotatorSettings.ip.length > 4 &&
(callObj.azimuth || callObj.grid)
(callObj.heading || callObj.grid)
)
{
let payload = "<PST>"
if (callObj.azimuth)
if (callObj.heading)
{
payload += `<AZIMUTH>${callObj.azimuth}</AZIMUTH>`
payload += `<AZIMUTH>${Math.round(callObj.heading)}</AZIMUTH>`
}
else
if (callObj.grid)
{
payload += `<QRA>${callObj.grid}</QRA>`
}