public class Capsule extends TelemetryFileTranslator
The data consists of text fields, separated by whitespace commas, with each field in a particular order in the line. Datatypes for each column are defined by their "index" in the constants below.
Modifier and Type | Field and Description |
---|---|
static int |
CLOCK_INDEX |
static int |
PHI_INDEX |
static int |
PSI_INDEX |
static int |
THETA_INDEX |
static int |
X_INDEX |
static int |
Y_INDEX |
static int |
Z_INDEX |
avclDocument, centerCoordUTM, factory, fileWriter, filterOnTime, fis, geoOriginLatLon, latLonOffset, metadata, offsetCoordUTM, pathname, projectGeoOriginLatLon, sysoutPW, timeFilterMinimum
GEO_ORIGIN
Constructor and Description |
---|
Capsule()
Used by GUI through TelemetryTranslatorInterface i/f
|
Capsule(String pPathname)
Creates a new instance of Capsule AVCL translator
|
Modifier and Type | Method and Description |
---|---|
AVCL |
getDefaultAvclDocument()
Creates a mostly-filled-out
AVCL document that lacks only the telemetry data. |
double |
getTelemetrySampleRate()
Accept data no more frequently than this
|
static void |
main(String[] args) |
void |
parse()
implements TelemetryTranslatorInterface
|
String |
toString()
Returns a string description of the translator, suitable for user
viewing in GUIs.
|
addMetadataEntry, endDocument, getAvclDocument, getImportStartTime, getImportStopTime, getMonthName, getSignificantDigits, getSysOut, getTimeFilterMinimum, latLongToXY, latLongToXY, setFilterOnTime, setImportStartTime, setImportStopTime, setInputFileName, setMetadata, setSysOut, setTimeFilterMinimum, startDocument, startDocument, sysOutPrintln, sysOutPrintln, writeOutputFile
public static final int CLOCK_INDEX
public static final int X_INDEX
public static final int Y_INDEX
public static final int Z_INDEX
public static final int PSI_INDEX
public static final int THETA_INDEX
public static final int PHI_INDEX
public String toString()
TelemetryTranslatorInterface
toString
in interface TelemetryTranslatorInterface
toString
in class TelemetryFileTranslator
public AVCL getDefaultAvclDocument()
AVCL
document that lacks only the telemetry data.getDefaultAvclDocument
in class TelemetryFileTranslator
AVCL
telemetry mission specific to this type of vehiclepublic void parse()
parse
in interface TelemetryTranslatorInterface
parse
in class TelemetryFileTranslator
public static void main(String[] args)
args
- public double getTelemetrySampleRate()
TelemetryFileTranslator
getTelemetrySampleRate
in interface TelemetryTranslatorInterface
getTelemetrySampleRate
in class TelemetryFileTranslator