public interface RoverInterface
Modifier and Type | Interface and Description |
---|---|
static interface |
RoverInterface.RadioListener
Allows for a registered receiver to get command output,
input, status, and preset information when changed.
|
static class |
RoverInterface.Receiver
Receiver class, provides status information (hearbeat) for the rover.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANALOG |
static java.lang.String |
ANNEX_A |
static java.lang.String |
ANNEX_B |
static java.lang.String |
BECDL |
static java.lang.String |
CDL |
static java.lang.String |
CDL_ALT |
static java.lang.String |
DDL |
static java.lang.String |
M1 |
static java.lang.String |
M2 |
static java.lang.String |
M3 |
static java.lang.String |
M4 |
static java.lang.String |
NONE |
static int |
STATUS_ERROR |
static int |
STATUS_OK |
static int |
STATUS_STOPPED |
static int |
STATUS_TIMEOUT |
static java.lang.String |
VNW |
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) |
static final int STATUS_OK
static final int STATUS_TIMEOUT
static final int STATUS_ERROR
static final int STATUS_STOPPED
static final java.lang.String NONE
static final java.lang.String ANNEX_A
static final java.lang.String ANNEX_B
static final java.lang.String CDL
static final java.lang.String CDL_ALT
static final java.lang.String VNW
static final java.lang.String ANALOG
static final java.lang.String BECDL
static final java.lang.String DDL
static final java.lang.String M1
static final java.lang.String M2
static final java.lang.String M3
static final java.lang.String M4
void setRadioListener(RoverInterface.RadioListener listener)
void initialize(android.content.Context context)
boolean isMonitoring()
void startMonitoring()
void stopMonitoring()
void startListening(java.lang.String iface)
boolean isListening()
void stopListening()
void enableReceiver()
void enableTestVideo(boolean state)
boolean testConnection(java.net.NetworkInterface ni, java.net.InetAddress address, java.lang.String roverIP)
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.void setEncodingParam(int bitrate, boolean encodingHalf, boolean mpeg2)
void setChannel(java.lang.String m, int channel)
void scanFrequency(int startFrequency, int endFrequency, int stepSize, java.lang.String type)
void reaquire()
void enableCoT(boolean enable)
void setReceiverFrequency(int freq)
void getPresets(int offset, int count)
void getPresetName(int presetNum)
void loadPreset(byte presetNum)
boolean requiresNetworkConfiguration()
java.lang.String getRoverIP()
void videoRequested(boolean v)