EDU.cmu.cs.coral.cye
Class JCyeStatus

java.lang.Object
  |
  +--EDU.cmu.cs.coral.cye.JCyeStatus

public class JCyeStatus
extends java.lang.Object

JCyeStatus is implemented to help with parsing robot status messages. This class should never be accessed by user code.


Constructor Summary
JCyeStatus()
          Constructor for JCyeStatus.
JCyeStatus(JCyeMsg Msg)
          Constructor for JCyeStatus.
 
Method Summary
 int byteToInt(byte b)
          Converts a byte to an int.
 double GetBattery()
          Get the battery voltage.
 int GetHeading()
          Get the heading (in robot coordinates).
 int GetMsgID()
          Get the message ID.
 int GetX()
          Get the x value (in robot coordinates).
 int GetY()
          Get the y value (in robot coordinates).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCyeStatus

public JCyeStatus()
Constructor for JCyeStatus. Does nothing.

JCyeStatus

public JCyeStatus(JCyeMsg Msg)
Constructor for JCyeStatus. Turns a JCyeMsg received from the robot into a JCyeStatus object.
Parameters:
Msg - a JCyeMsg received from the Cye robot.
Method Detail

byteToInt

public int byteToInt(byte b)
Converts a byte to an int.
Parameters:
b - the byte.
Returns:
the integer.

GetMsgID

public int GetMsgID()
Get the message ID.
Returns:
the ID

GetX

public int GetX()
Get the x value (in robot coordinates).
Returns:
the x value.

GetY

public int GetY()
Get the y value (in robot coordinates).
Returns:
the y value.

GetHeading

public int GetHeading()
Get the heading (in robot coordinates).
Returns:
the heading.

GetBattery

public double GetBattery()
Get the battery voltage.
Returns:
the voltage.