Class OpModeOption
java.lang.Object
org.wpilib.hardware.hal.OpModeOption
An individual opmode option.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpModeOption(long id, String name, String group, String description, int textColor, int backgroundColor) Constructor. -
Method Summary
-
Field Details
-
id
Unique id. Encodes robot mode in bits 57-56, LSB 56 bits is hash of name. -
name
-
group
-
description
-
textColor
-
backgroundColor
-
-
Constructor Details
-
OpModeOption
public OpModeOption(long id, String name, String group, String description, int textColor, int backgroundColor) Constructor.- Parameters:
id- idname- namegroup- groupdescription- descriptiontextColor- text color (0x00RRGGBB or -1 for default)backgroundColor- background color (0x00RRGGBB or -1 for default)
-
-
Method Details
-
getMode
-
makeId
-