|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.first.wpilibj.Dashboard
public class Dashboard
Pack data into the "user data" field that gets sent to the dashboard laptop via the driver station.
Nested Class Summary | |
---|---|
protected class |
Dashboard.MemAccess
|
Field Summary | |
---|---|
protected Dashboard.MemAccess |
m_userStatus
|
protected int |
m_userStatusSize
|
protected static byte |
s_updateNumber
|
Constructor Summary | |
---|---|
protected |
Dashboard(Object statusDataSemaphore)
Dashboard contructor. |
Method Summary | |
---|---|
boolean |
addArray()
Start an array in the packed dashboard data structure. |
boolean |
addBoolean(boolean value)
Pack a boolean into the dashboard data structure. |
boolean |
addByte(byte value)
Pack a signed 8-bit int into the dashboard data structure. |
boolean |
addCluster()
Start a cluster in the packed dashboard data structure. |
boolean |
addDouble(double value)
Pack a 64-bit floating point number into the dashboard data structure. |
boolean |
addFloat(float value)
Pack a 32-bit floating point number into the dashboard data structure. |
boolean |
addInt(int value)
Pack a signed 32-bit int into the dashboard data structure. |
boolean |
addShort(short value)
Pack a signed 16-bit int into the dashboard data structure. |
boolean |
addString(String value)
Pack a NULL-terminated string of 8-bit characters into the dashboard data structure. |
boolean |
addString(String value,
int length)
Pack a string of 8-bit characters of specified length into the dashboard data structure. |
int |
commit()
Indicate that the packing is complete and commit the buffer to the DriverStation. |
boolean |
finalizeArray()
Indicate the end of an array packed into the dashboard data structure. |
boolean |
finalizeCluster()
Indicate the end of a cluster packed into the dashboard data structure. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Dashboard.MemAccess m_userStatus
protected int m_userStatusSize
protected static byte s_updateNumber
Constructor Detail |
---|
protected Dashboard(Object statusDataSemaphore)
userStatus
- the byte array to store user status informationMethod Detail |
---|
public boolean addByte(byte value)
value
- Data to be packed into the structure.
public boolean addShort(short value)
value
- Data to be packed into the structure.
public boolean addInt(int value)
value
- Data to be packed into the structure.
public boolean addFloat(float value)
value
- Data to be packed into the structure.
public boolean addDouble(double value)
value
- Data to be packed into the structure.
public boolean addBoolean(boolean value)
value
- Data to be packed into the structure.
public boolean addString(String value)
value
- Data to be packed into the structure.
public boolean addString(String value, int length)
value
- Data to be packed into the structure.length
- The number of bytes in the string to pack.
public boolean addArray()
public boolean finalizeArray()
public boolean addCluster()
public boolean finalizeCluster()
public int commit()
|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |