mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
ModeConverter
This commit is contained in:
@@ -1468,7 +1468,7 @@ mymap.on('mousemove', onQsoMapMove);
|
||||
});
|
||||
|
||||
cat2UI($('#frequency_rx'),data.frequency_rx,false,true,function(d){$("#band_rx").val(frequencyToBand(d))});
|
||||
cat2UI($('.mode'),data.mode,false,false,function(d){setRst($(".mode").val())});
|
||||
cat2UI($('.mode'),catmode(data.mode),false,false,function(d){setRst($(".mode").val())});
|
||||
cat2UI($('#sat_name'),data.satname,false,false);
|
||||
cat2UI($('#sat_mode'),data.satmode,false,false);
|
||||
cat2UI($('#transmit_power'),data.power,false,false);
|
||||
|
||||
@@ -66,6 +66,34 @@ function frequencyToBand(frequency) {
|
||||
}
|
||||
}
|
||||
|
||||
function catmode(mode) {
|
||||
switch ((mode || '').toUpperCase()) {
|
||||
case 'CW-U':
|
||||
case 'CW-L':
|
||||
case 'CW-R':
|
||||
case 'CWU':
|
||||
case 'CWL':
|
||||
return 'CW';
|
||||
break;
|
||||
case 'RTTY-L':
|
||||
case 'RTTY-U':
|
||||
case 'RTTY-R':
|
||||
return 'RTTY';
|
||||
break;
|
||||
case 'USB-D':
|
||||
case 'USB-D1':
|
||||
return 'USB';
|
||||
break;
|
||||
case 'LSB-D':
|
||||
case 'LSB-D1':
|
||||
return 'LSB';
|
||||
break;
|
||||
default:
|
||||
return (mode || '');;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function LatLng2Loc(y, x, num) {
|
||||
if (x<-180) {x=x+360;}
|
||||
if (x>180) {x=x-360;}
|
||||
|
||||
Reference in New Issue
Block a user