public class AutoFocusCcd extends CommandEvent implements CcdCommand, TargetDepending, TargetDependingCommand, InitializerDepending
DEFDISTANCE from the center
position.CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private float[] |
bv
The B-V color index.
|
static double |
DEFDISTANCE
Default maximum degree distance to center for focus star.
|
static float |
DEFMAGNITUDE
Default maximum magnitude for focus star.
|
static double |
DEFMAGTWIN
Default minimum companion mag difference to be ignored.
|
static double |
DEFMINTWIN
Default minimum companion distance for focus star, arcsec.
|
static Vector2D |
DEFPIVOT
The pivoting in x/y radians for zero rotation.
|
private static double |
DEFPIXELSCALE
The default pixel scale in pixel per radian.
|
private double |
derot
The pre-set derotator angle.
|
private float[] |
mag
The Johnson V star brightnesses, in magnitudes.
|
private double |
magtwin
If companion is fainter than this, we can ignore it.
|
private double |
maxdist
The maximum distance for the focus star.
|
private float |
maxmag
The maximum magnitude for the focus star.
|
private double |
mintwin
The minimum twin distance.
|
private static long |
serialVersionUID |
private double[] |
xrad
The radian position of the focus star in CCD-x axis.
|
private double[] |
yrad
The radian position of the focus star in CCD-y axis.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
AutoFocusCcd(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
AutoFocusCcd(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getBV(int i0)
Returns the color index B-V of the field-of-view stars.
|
int |
getFoucsStarCount() |
String[] |
getLine()
Returns the command line that gives the CCD x and y position in radians,
the magnitude and the color of the star.
|
float |
getMag(int i0)
Returns the V-magnitude of the field-of-view stars.
|
double |
getXrad(int i0)
Returns the right ascension of the field-of-view stars.
|
double |
getYrad(int i0)
Returns the declination of the field-of-view stars.
|
private static boolean |
hasCompanion(Star focus,
List<Star> fov,
double dist,
double mag)
We scan the field of view for detecting companions to the possible focus
star.
|
void |
initWith(String init)
Registers an parameter set to this command.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
registerTarget(TargetDefinition star)
Registers the target.
|
void |
registerTargetProperties(Object view)
Calculates the command line from the properties.
|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassNamecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate static final long serialVersionUID
private static final double DEFPIXELSCALE
public static final double DEFDISTANCE
public static final float DEFMAGNITUDE
public static final double DEFMINTWIN
public static final double DEFMAGTWIN
public static final Vector2D DEFPIVOT
private double derot
private double[] xrad
private double[] yrad
private float[] mag
private float[] bv
private double maxdist
private float maxmag
private double mintwin
private double magtwin
public AutoFocusCcd(Object src)
public AutoFocusCcd(Object src, String type, long time)
DTDConstants.OBJECT element has been registered to
this command.MessageEvent.isValid()public void initWith(String init)
initWith in interface InitializerDependingpublic void registerTarget(TargetDefinition star)
#DEROTATOROFFSET. If this target does not allow the derotator
offset, it is disabled.registerTarget in interface TargetDependingpublic void registerTargetProperties(Object view)
SimpleStar with an additional key
ReservedConstants.FOV. The value mapped to this key is a list of
SimpleStar objects, each representing a star in the field of
view. Note that the first entry in this list is always the target star.registerTargetProperties in interface TargetDependingCommandpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic int getFoucsStarCount()
public double getXrad(int i0)
public double getYrad(int i0)
public float getMag(int i0)
public float getBV(int i0)
private static boolean hasCompanion(Star focus, List<Star> fov, double dist, double mag)
focus - Possible focus starfov - List of field of view stars.dist - Maximum distance in arcsec to be considered companion.mag - Maximum mag difference to be considered companion.