public class DefaultRoverImpl extends java.lang.Object implements RoverInterface
RoverInterface.RadioListener, RoverInterface.Receiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
ANALOG, ANNEX_A, ANNEX_B, BECDL, CDL, CDL_ALT, DDL, M1, M2, M3, M4, NONE, STATUS_ERROR, STATUS_OK, STATUS_STOPPED, STATUS_TIMEOUT, VNW
Constructor and Description |
---|
DefaultRoverImpl() |
Modifier and Type | Method and Description |
---|---|
void |
enableCoT(boolean enable) |
void |
enableReceiver() |
void |
enableTestVideo(boolean state) |
void |
getPresetName(int presetNum) |
void |
getPresets(int offset,
int count) |
java.lang.String |
getRoverIP() |
void |
initialize(android.content.Context context) |
boolean |
isListening() |
boolean |
isMonitoring() |
void |
loadPreset(byte presetNum) |
void |
reaquire() |
boolean |
requiresNetworkConfiguration() |
void |
scanFrequency(int startFrequency,
int endFrequency,
int stepSize,
java.lang.String type) |
void |
setChannel(java.lang.String m,
int channel)
ModuleType is one of "M1", "M2", "M3", "M4"
|
void |
setEncodingParam(int bitrate,
boolean encodingHalf,
boolean mpeg2)
If MPEG-2 is true, then attempt to deliver the encoded video as MPEG-2.
|
void |
setRadioListener(RoverInterface.RadioListener listener) |
void |
setReceiverFrequency(int freq) |
void |
startListening(java.lang.String iface) |
void |
startMonitoring() |
void |
stopListening() |
void |
stopMonitoring() |
boolean |
testConnection(java.net.NetworkInterface ni,
java.net.InetAddress address,
java.lang.String roverIP)
Tries to connect to the web interface of the rover radio to verify that it is reachable.
|
void |
videoRequested(boolean v) |
public static final java.lang.String TAG
public void initialize(android.content.Context context)
initialize
in interface RoverInterface
public boolean requiresNetworkConfiguration()
requiresNetworkConfiguration
in interface RoverInterface
public java.lang.String getRoverIP()
getRoverIP
in interface RoverInterface
public void videoRequested(boolean v)
videoRequested
in interface RoverInterface
public void setRadioListener(RoverInterface.RadioListener listener)
setRadioListener
in interface RoverInterface
public boolean isMonitoring()
isMonitoring
in interface RoverInterface
public void startMonitoring()
startMonitoring
in interface RoverInterface
public void stopMonitoring()
stopMonitoring
in interface RoverInterface
public void startListening(java.lang.String iface)
startListening
in interface RoverInterface
public boolean isListening()
isListening
in interface RoverInterface
public void stopListening()
stopListening
in interface RoverInterface
public void enableReceiver()
enableReceiver
in interface RoverInterface
public void enableTestVideo(boolean state)
enableTestVideo
in interface RoverInterface
public boolean testConnection(java.net.NetworkInterface ni, java.net.InetAddress address, java.lang.String roverIP)
RoverInterface
testConnection
in interface RoverInterface
ni
- the network interface to useaddress
- the inetAddress to try to connect toroverIP
- the rover address as a backup in case the address is not used.public void setEncodingParam(int bitrate, boolean encodingHalf, boolean mpeg2)
RoverInterface
setEncodingParam
in interface RoverInterface
public void setChannel(java.lang.String m, int channel)
RoverInterface
setChannel
in interface RoverInterface
public void scanFrequency(int startFrequency, int endFrequency, int stepSize, java.lang.String type)
scanFrequency
in interface RoverInterface
public void reaquire()
reaquire
in interface RoverInterface
public void enableCoT(boolean enable)
enableCoT
in interface RoverInterface
public void setReceiverFrequency(int freq)
setReceiverFrequency
in interface RoverInterface
public void getPresets(int offset, int count)
getPresets
in interface RoverInterface
public void getPresetName(int presetNum)
getPresetName
in interface RoverInterface
public void loadPreset(byte presetNum)
loadPreset
in interface RoverInterface