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 RoverInterfacepublic boolean requiresNetworkConfiguration()
requiresNetworkConfiguration in interface RoverInterfacepublic java.lang.String getRoverIP()
getRoverIP in interface RoverInterfacepublic void videoRequested(boolean v)
videoRequested in interface RoverInterfacepublic void setRadioListener(RoverInterface.RadioListener listener)
setRadioListener in interface RoverInterfacepublic boolean isMonitoring()
isMonitoring in interface RoverInterfacepublic void startMonitoring()
startMonitoring in interface RoverInterfacepublic void stopMonitoring()
stopMonitoring in interface RoverInterfacepublic void startListening(java.lang.String iface)
startListening in interface RoverInterfacepublic boolean isListening()
isListening in interface RoverInterfacepublic void stopListening()
stopListening in interface RoverInterfacepublic void enableReceiver()
enableReceiver in interface RoverInterfacepublic void enableTestVideo(boolean state)
enableTestVideo in interface RoverInterfacepublic boolean testConnection(java.net.NetworkInterface ni,
java.net.InetAddress address,
java.lang.String roverIP)
RoverInterfacetestConnection in interface RoverInterfaceni - 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)
RoverInterfacesetEncodingParam in interface RoverInterfacepublic void setChannel(java.lang.String m,
int channel)
RoverInterfacesetChannel in interface RoverInterfacepublic void scanFrequency(int startFrequency,
int endFrequency,
int stepSize,
java.lang.String type)
scanFrequency in interface RoverInterfacepublic void reaquire()
reaquire in interface RoverInterfacepublic void enableCoT(boolean enable)
enableCoT in interface RoverInterfacepublic void setReceiverFrequency(int freq)
setReceiverFrequency in interface RoverInterfacepublic void getPresets(int offset,
int count)
getPresets in interface RoverInterfacepublic void getPresetName(int presetNum)
getPresetName in interface RoverInterfacepublic void loadPreset(byte presetNum)
loadPreset in interface RoverInterface