public class CasseroleDriverView
extends java.lang.Object
Constructor and Description |
---|
CasseroleDriverView() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<org.usfirst.frc.team1736.lib.WebServer.DriverViewObject> |
getAllObjects() |
static void |
newBoolean(java.lang.String name_in,
java.lang.String color_in)
Create a new Boolean indicator to display on the driver view webpage.
|
static void |
newDial(java.lang.String name_in,
double min_in,
double max_in,
double step_in,
double min_acceptable_in,
double max_acceptable_in)
Create a new dial to display on the driver view webpage.
|
static void |
newStringBox(java.lang.String name_in)
Create a new String to display on the driver view webpage.
|
static void |
newWebcam(java.lang.String name_in,
java.lang.String url_in,
double marker_x,
double marker_y,
double img_rotate_deg)
Add a new webcam to the driver view webpage.
|
static void |
setBoolean(java.lang.String name_in,
boolean value_in)
Display a new value on an existing boolean display
|
static void |
setDialValue(java.lang.String name_in,
double value_in)
Display a new value on an existing dial at runtime
|
static void |
setStringBox(java.lang.String name_in,
java.lang.String value_in)
Display a new value on an existing string box at runtime
|
static void |
setWebcamCrosshairs(java.lang.String name_in,
double x_pct,
double y_pct)
Update the location of the crosshairs on the webcam stream
|
public static void newDial(java.lang.String name_in, double min_in, double max_in, double step_in, double min_acceptable_in, double max_acceptable_in)
name_in
- Name of the value to display. Also used to reference the value when updating
it.min_in
- Minimum value displayed on the dial.max_in
- Maximum value displayed on the dial.step_in
- Step value between dial tick marks.min_acceptable_in
- Lower limit of green display area on drawn dial.max_acceptable_in
- Upper limit of green display area on drawn dial.public static void newWebcam(java.lang.String name_in, java.lang.String url_in, double marker_x, double marker_y, double img_rotate_deg)
url_in
- Web address of the motion JPEG stream from the camera.marker_x
- X draw position of the crosshairs (in percent - 0% is full left, 100% is full
right).marker_y
- Y draw position of the crosshairs (in percent - 0% is full top, 100% is full
bottom).img_rotate_deg
- Degrees clockwise to rotate the image to be displayed. Crosshairs are
drawn on top of the already-rotated image.name_in
- Name of the web stream. Internal uses only, currently...public static void newStringBox(java.lang.String name_in)
name_in
- Name of the value to display. Also used to reference the value when updating
it.public static void newBoolean(java.lang.String name_in, java.lang.String color_in)
name_in
- Name of the value to display. Also used to reference the value when updating
it.color_in
- Color to display. Currently, only supported values are "red", "yellow", and
"green".public static void setDialValue(java.lang.String name_in, double value_in)
name_in
- Name of the dial to updatevalue_in
- Value to display on the dial. Should be in the min/max range assigned for the
dial, or the displayed value will be truncated.public static void setStringBox(java.lang.String name_in, java.lang.String value_in)
name_in
- Name of the dial to updatevalue_in
- Value to display on the dial. Should be in the min/max range assigned for the
dial, or the displayed value will be truncated.public static void setBoolean(java.lang.String name_in, boolean value_in)
name_in
- Name of the dial to updatevalue_in
- Value to display on the indicator.public static void setWebcamCrosshairs(java.lang.String name_in, double x_pct, double y_pct)
public static java.util.ArrayList<org.usfirst.frc.team1736.lib.WebServer.DriverViewObject> getAllObjects()