| 
 | " 2013 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 | 
| Constructor Summary | |
|---|---|
| protected  | Dashboard(Object statusDataSemaphore)Dashboard constructor. | 
| 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. | 
|  void | flush()If the dashboard had data buffered to be sent, calling this method will reset the output buffer. | 
|  byte[] | getBytes()Gets a reference to the current data to be sent to the dashboard. | 
|  int | getBytesLength()Gets the length of the current data to be sent to the dashboard. | 
| 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
| Constructor Detail | 
|---|
protected Dashboard(Object statusDataSemaphore)
statusDataSemaphore - the object to synchronize on| Method 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()
public byte[] getBytes()
IDashboard
getBytes in interface IDashboardpublic int getBytesLength()
IDashboard
getBytesLength in interface IDashboardpublic void flush()
IDashboard
flush in interface IDashboard| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||