1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
//
// Name: Goto Demo
// License: Public Domain
// Author: Matthew Gates
// Description: An example script for checking that the core.moveToRaDec and core.moveToRaDecJ2000
// functions are working OK.
//
include("status_label.inc");
function cycleGrids()
{
status("equ of date grid on");
GridLinesMgr.setFlagEquatorGrid(true);
GridLinesMgr.setFlagEquatorJ2000Grid(false);
core.wait(2);
status("J2000 grid on");
GridLinesMgr.setFlagEquatorGrid(false);
GridLinesMgr.setFlagEquatorJ2000Grid(true);
core.wait(2);
status("both grids on");
GridLinesMgr.setFlagEquatorGrid(true);
core.wait(2);
}
core.clear("starchart");
core.setTimeRate(0);
StelMovementMgr.zoomTo(2, 2);
useStatusLabel("Goto test: ", 50, 50, 16, "#ff0000");
status("at 0,0 equ of date...");
core.moveToRaDec(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 J2000...");
core.moveToRaDecJ2000(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 equ of date...");
core.moveToRaDec(0,0);
core.wait(2);
cycleGrids();
status("at 0,0 J2000...");
core.moveToRaDecJ2000(0,0);
core.wait(2);
cycleGrids();
core.moveToRaDec()
LabelMgr.deleteAllLabels();
|