public final class Telemetry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.qualcomm.robotcore.robocol.Telemetry |
robotTelemetry
The telemetry link between the robot controller and the driver station.
|
Modifier | Constructor and Description |
---|---|
private |
Telemetry()
Telemetry should not be instantiable.
|
Modifier and Type | Method and Description |
---|---|
static void |
sendData(java.lang.Object data)
Deprecated.
Since this method is a delegate that substitutes an empty string for the tag, all
objects that are sent with this method will have an identical tag. The telemetry
system assumes that multiple objects sent with the same tag are just different
versions of the same information, and that only the most recent version of the
object is the 'correct' version. If multiple objects are sent with the same tag,
only the most recently sent object will be displayed, and all others will be
discarded. This makes it very impractical to send data with an empty tag, because
the telemetry system will discard potentially important data.
|
static void |
sendData(java.lang.String tag,
java.lang.Object data)
Sends given data from the robot controller to the driver station.
|
static void |
sendMotor(Motor m)
Sends motor data from the robot controller to the driver station.
|
static void |
sendMotorPosition(Motor m)
Sends motor data from the robot controller to the driver station.
|
static void |
sendMotorPower(Motor m)
Sends motor data from the robot controller to the driver station.
|
static void |
sendServoPosition(Servo s)
Sends servo data from the robot controller to the driver station.
|
static void |
setTelemetry(com.qualcomm.robotcore.robocol.Telemetry telemetry) |
private static com.qualcomm.robotcore.robocol.Telemetry robotTelemetry
Telemetry
public static void setTelemetry(com.qualcomm.robotcore.robocol.Telemetry telemetry)
public static void sendData(java.lang.String tag, java.lang.Object data)
toString()
method will be called and the string
representation of the object is what will actually be sent. The data will be
displayed in the bottom portion of the driver station's screen.tag
- a very short description of the data that is being sent. Ideally this
string should be around 1-8 characters long, but an upper limit on characters is
currently not known.data
- the object to be sent.public static void sendData(java.lang.Object data)
sendData(String, Object)
, but replaces the tag
argument with an empty string.data
- the object to be sent.sendData(String, Object)
public static void sendMotor(Motor m)
This method works by calling sendMotorPower(Motor)
followed by
sendMotorPosition(Motor)
. Refer to the documentation for both of these
methods for more information.
m
- the motor to be sent.sendMotorPower(Motor)
,
sendMotorPosition(Motor)
public static void sendMotorPower(Motor m)
m
- the motor to be sent.sendData(String, Object)
public static void sendMotorPosition(Motor m)
m
- the motor to be sent.sendData(String, Object)
public static void sendServoPosition(Servo s)
s
- the servo to be sent.sendData(String, Object)