public class Controller extends uk.theretiredprogrammer.rpiembeddedlibrary.thread.MDThread<GPSSportsInformationRecorder.Command>
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Controller(FileInputStream gpsIn,
FileOutputStream screenOut,
FileInputStream screenIn,
FileInputStream depthfinderIn,
boolean useKeyboardInput,
boolean coordinates,
boolean displayDepth,
boolean knots)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
cancelRecording()
Cancel current recording of track and abandon data.
|
static LocationData |
getLocationData()
Get information about current location.
|
static void |
obtainReferenceLocation()
Start the Reference Location calculation.
|
protected void |
processMessage(GPSSportsInformationRecorder.Command command,
Object commandParameters) |
static void |
recordPoint()
Record the current Position on storage.
|
static void |
startStopRecording()
Start or Stop the current recording of a track, saving data if necessary.
|
run, sendCloseMessage, sendMessage, sendMessageactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic Controller(FileInputStream gpsIn, FileOutputStream screenOut, FileInputStream screenIn, FileInputStream depthfinderIn, boolean useKeyboardInput, boolean coordinates, boolean displayDepth, boolean knots)
gpsIn - the GPS device inputstreamscreenOut - the display device outputstreamscreenIn - the display device inputstreamdepthfinderIn - the depthfinder device inputstreamuseKeyboardInput - true if keyboard input is to be usedcoordinates - true if positions are to be displayed as x,y
coordinates, other latitude/longitude format will be used.displayDepth - true is depth is to be displayed, other altitude will
be shownknots - true if speed is to be displayed in knots, other metres/sec
will be usedprotected void processMessage(GPSSportsInformationRecorder.Command command, Object commandParameters) throws IOException
processMessage in class uk.theretiredprogrammer.rpiembeddedlibrary.thread.MDThread<GPSSportsInformationRecorder.Command>IOExceptionpublic static final LocationData getLocationData()
public static final void obtainReferenceLocation()
public static final void recordPoint()
throws IOException
IOException - if problemspublic static final void startStopRecording()
throws IOException
IOException - if problemspublic static final void cancelRecording()
throws IOException
IOException - if problemsCopyright © 2017. All rights reserved.