|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcontrol_packet_coder
| Constructor Summary | |
control_packet_coder()
Creates a new instance of control_packet_coder |
|
| Method Summary | |
byte[] |
createControlPacket()
This creates a control packet that can be sent to the robot via the SerialPortControl object. |
int |
decodeResponsePacket(byte[] rPacket)
This is used to update all of the object variables to the new values returned in the response packet. |
boolean |
getAutofocus()
Returns the autofocus setting. |
byte |
getBatteryRaw()
Returns the battery voltage as a raw value from the controller. |
double |
getBatteryVoltage()
Returns the battery voltage. |
byte |
getControllerPcFlags()
Retuns the controller PC flag byte. |
byte |
getControllerTetherFlags()
Retuns the controller Tether flag byte. |
byte |
getFocusCurrent()
Returns the focus current. |
boolean |
getFocusIn()
Returns the focusIn status. |
boolean |
getFocusOut()
Returns the focusOut status. |
byte |
getJoyX()
Returns the X postion of the OCU joystick. |
byte |
getJoyY()
Returns the Y postition of the OCU joystick. |
boolean |
getLaser()
Returns the on/off state of the laser. |
byte |
getLeftTrack()
Returns the left track vector. |
byte |
getLeftTrackCurrent()
Returns the left track current. |
byte |
getLight()
Returns the light intensity setting. |
byte |
getLightCurrent()
Returns the light current. |
byte |
getLightKnob()
Returns the position of the OCU light knob. |
int |
getPitch()
Returns the pitch of the robot. |
byte |
getRaise()
Returns the raise of the robot. |
byte |
getRaiseCurrent()
Returns the raise current. |
boolean |
getRaiseDown()
Returns the RaiseDown status. |
boolean |
getRaiseUp()
Returns the RaiseUp status. |
byte |
getRightTrack()
Returns the right track vector. |
byte |
getRightTrackCurrent()
Returns the right track current. |
byte |
getTemperature()
Returns the external temperature at the robot. |
byte |
getTiltCurrent()
Returns the tilt current. |
boolean |
getTiltDown()
Returns the TiltDown status. |
boolean |
getTiltUp()
Returns the TiltUp status. |
boolean |
getWarning()
Returns the OCU warning light status. |
boolean |
getZoomIn()
Returns the ZoomIn status. |
boolean |
getZoomOut()
Returns the ZoomOut status. |
boolean |
getZoomSpeed()
Returns the ZoomSpeed status. |
void |
setAutofocus(boolean autofocusOn)
Sets the camera Autofocus on or off. |
void |
setFocusIn(boolean focusIn)
Makes the camera focus in. |
void |
setFocusOut(boolean focusOut)
Makes the camera focus out. |
void |
setLaser(boolean laserOn)
Sets the laser on or off. |
void |
setLeftTrack(byte speed)
Sets the speed and direction for the left track on the robot. |
void |
setLight(byte intensity)
Sets the intensity of the robot head lights. |
void |
setRaiseDown(boolean raiseDown)
Causes the robot to lower its configuration. |
void |
setRaiseUp(boolean raiseUp)
Causes the robot to raise its configuration. |
void |
setRightTrack(byte speed)
Sets the speed and direction for the left track on the robot. |
void |
setTiltDown(boolean tiltDown)
Causes the camera to tilt down. |
void |
setTiltUp(boolean tiltUp)
Causes the camera to tilt up. |
void |
setWarning(boolean warning)
Sets the waring light on the OCU. |
void |
setZoomIn(boolean zoomIn)
Causes the camera to zoom in. |
void |
setZoomOut(boolean zoomOut)
Causes the camera to zoom out. |
void |
setZoomSpeed(boolean zoomSpeed)
Sets the zoom speed of the camera. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public control_packet_coder()
| Method Detail |
public void setLeftTrack(byte speed)
speed - Signed Byte that indicates speed and direction of the motor. Negative numbers move the moter in reverse.public void setRightTrack(byte speed)
speed - Signed Byte that indicates speed and direction of the motor. Negative numbers move the moter in reverse.public void setLight(byte intensity)
intensity - Unsigned Byte indicating how bright the robot head lights are. 0 is off 255 (or -1) is Max.public void setAutofocus(boolean autofocusOn)
autofocusOn - True for autofocus False for manual.public void setLaser(boolean laserOn)
laserOn - True to turn the laser on, False to turn the laser off.public void setFocusOut(boolean focusOut)
focusOut - True to focus out.public void setFocusIn(boolean focusIn)
focusIn - True to focus in.public void setRaiseDown(boolean raiseDown)
raiseDown - True to lower the robot.public void setRaiseUp(boolean raiseUp)
raiseUp - True to raise the robot.public void setTiltDown(boolean tiltDown)
tiltDown - True to tilt down.public void setTiltUp(boolean tiltUp)
tiltUp - True to tilt up.public void setWarning(boolean warning)
warning - True to turn the light on, False to turn it off.public void setZoomIn(boolean zoomIn)
zoomIn - True to zoom in.public void setZoomOut(boolean zoomOut)
zoomOut - True to zoom out.public void setZoomSpeed(boolean zoomSpeed)
zoomSpeed - True for fast, false for slow.public int decodeResponsePacket(byte[] rPacket)
rPacket - This is the response packet array. Get this from the SerialPortControl object.
public byte[] createControlPacket()
public byte getLeftTrack()
public byte getRightTrack()
public byte getLight()
public double getBatteryVoltage()
public byte getBatteryRaw()
public byte getTemperature()
public int getPitch()
public byte getRaise()
public byte getJoyY()
public byte getJoyX()
public boolean getAutofocus()
public boolean getLaser()
public boolean getFocusOut()
public boolean getFocusIn()
public boolean getRaiseDown()
public boolean getRaiseUp()
public boolean getTiltDown()
public boolean getTiltUp()
public boolean getWarning()
public boolean getZoomIn()
public boolean getZoomOut()
public boolean getZoomSpeed()
public byte getTiltCurrent()
public byte getRaiseCurrent()
public byte getLightCurrent()
public byte getLeftTrackCurrent()
public byte getRightTrackCurrent()
public byte getFocusCurrent()
public byte getLightKnob()
public byte getControllerTetherFlags()
public byte getControllerPcFlags()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||