kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
CatRotator compatibility
rodzic
ee83005ac4
commit
4db05c414e
|
@ -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(); " />
|
||||
|
|
|
@ -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>`
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue