gps.mvc
Class SkytraqController
java.lang.Object
gps.mvc.MtkController
gps.mvc.SkytraqController
public class SkytraqController
- extends MtkController
Controller for Skytraq Devices.
Currently references MtkController, but MtkController should be further
refactored to become Mtk independent.
- Author:
- Robert Tomanek
Fields inherited from class gps.mvc.MtkController |
CMD_AUTOLOG_OFF, CMD_AUTOLOG_ON, CMD_CANCEL_GETLOG, CMD_COLDSTART, CMD_EPO_CLEAR, CMD_ERASE_LOG, CMD_FACTORYRESET, CMD_HOTSTART, CMD_SET_DEVICE_NAME, CMD_SET_GPS_FIX_INTERVAL, CMD_SET_LOG_DISTANCE_INTERVAL, CMD_SET_LOG_OVERWRITE, CMD_SET_LOG_SPEED_INTERVAL, CMD_SET_LOG_TIME_INTERVAL, CMD_SET_POWERSAVE_ENABLED, CMD_SET_SBAS_ENABLED, CMD_SET_SBAS_TEST_ENABLED, CMD_STARTLOG, CMD_STOP_WAITING_FOR_ERASE, CMD_STOPLOG, CMD_WARMSTART |
Method Summary |
boolean |
cmd(int cmd)
Handles commands with no parameters Support for Holux-specific
commands, otherwise delegates to standard MTK |
boolean |
cmd(int cmd,
CmdParam param)
Handles commands with a parameter Support for Holux-specific commands,
otherwise delegates to standard MTK |
boolean |
isSupportedCmd(int cmd)
Check if a command is supported. |
Methods inherited from class gps.mvc.MtkController |
getLog, getLogInit, getMtkModel, logImmediate, notifyDisconnected, notifyRun, recoveryEraseLog, replyToOkToOverwrite, reqData, sendMtkBin, setAgpsData, setBinMode, setBtMacAddr, setDatumMode, setDGPSMode, setFlashUserOption, setLogFormat, setLogRequestAhead, setNMEADefaultPeriods, setNmeaMode, setNMEAPeriods |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkytraqController
public SkytraqController(GpsController c,
MtkModel m)
- Parameters:
m
-
cmd
public boolean cmd(int cmd)
- Handles commands with no parameters Support for Holux-specific
commands, otherwise delegates to standard MTK
- Overrides:
cmd
in class MtkController
- Parameters:
cmd
- Command identification.
- Returns:
- true is command is supported.
cmd
public boolean cmd(int cmd,
CmdParam param)
- Handles commands with a parameter Support for Holux-specific commands,
otherwise delegates to standard MTK
- Overrides:
cmd
in class MtkController
- Parameters:
cmd
- Command identification.
- Returns:
- true is command is supported.
isSupportedCmd
public boolean isSupportedCmd(int cmd)
- Description copied from class:
MtkController
- Check if a command is supported.
- Overrides:
isSupportedCmd
in class MtkController
- Parameters:
cmd
- Command identification.
- Returns:
- true is command is supported.