|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--EDU.cmu.cs.coral.cye.JCyeStatus
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 |
public JCyeStatus()
JCyeStatus.
Does nothing.public JCyeStatus(JCyeMsg Msg)
JCyeStatus.
Turns a JCyeMsg received from the robot into a JCyeStatus object.Msg - a JCyeMsg received from the Cye robot.| Method Detail |
public int byteToInt(byte b)
b - the byte.public int GetMsgID()
public int GetX()
public int GetY()
public int GetHeading()
public double GetBattery()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||