mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 12:04:13 -04:00
Add AvailableChannelOrFeatureHandler for handling lists of channels, features and message pipes to them.
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
var esaskyFrame;
|
||||
var antennaHpbw = 5.0;
|
||||
var showAntenna = false;
|
||||
var antennaHpbw = 5.0;
|
||||
var showAntenna = false;
|
||||
|
||||
// API reference: https://www.cosmos.esa.int/web/esdc/esasky-javascript-api
|
||||
function on_ready() {
|
||||
@@ -145,26 +145,26 @@
|
||||
|
||||
function showAntennaFoV(ra, dec) {
|
||||
var cmd =
|
||||
{
|
||||
{
|
||||
event: 'overlayFootprints',
|
||||
content: {
|
||||
'overlaySet':
|
||||
{
|
||||
'type': 'FootprintListOverlay',
|
||||
'overlayName': 'Antenna FoV',
|
||||
'cooframe': 'J2000',
|
||||
'color': 'white',
|
||||
'lineWidth': 5,
|
||||
'skyObjectList': [
|
||||
{
|
||||
'name': 'Antenna FoV',
|
||||
'id': 1,
|
||||
'stcs': 'CIRCLE J2000 ' + ra + ' ' + dec + ' ' + (antennaHpbw / 2.0),
|
||||
'ra_deg': ra,
|
||||
'dec_deg': dec
|
||||
}]
|
||||
}
|
||||
}
|
||||
content: {
|
||||
'overlaySet':
|
||||
{
|
||||
'type': 'FootprintListOverlay',
|
||||
'overlayName': 'Antenna FoV',
|
||||
'cooframe': 'J2000',
|
||||
'color': 'white',
|
||||
'lineWidth': 5,
|
||||
'skyObjectList': [
|
||||
{
|
||||
'name': 'Antenna FoV',
|
||||
'id': 1,
|
||||
'stcs': 'CIRCLE J2000 ' + ra + ' ' + dec + ' ' + (antennaHpbw / 2.0),
|
||||
'ra_deg': ra,
|
||||
'dec_deg': dec
|
||||
}]
|
||||
}
|
||||
}
|
||||
};
|
||||
esaskyFrame.contentWindow.postMessage(cmd, 'https://sky.esa.int');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user