本文整理汇总了Java中org.usfirst.frc.team449.robot.oi.buttons.CommandButton类的典型用法代码示例。如果您正苦于以下问题:Java CommandButton类的具体用法?Java CommandButton怎么用?Java CommandButton使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CommandButton类属于org.usfirst.frc.team449.robot.oi.buttons包,在下文中一共展示了CommandButton类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RobotMap
import org.usfirst.frc.team449.robot.oi.buttons.CommandButton; //导入依赖的package包/类
@JsonCreator
public RobotMap(@NotNull List<CommandButton> buttons, @Nullable SubsystemSolenoid shooter, @Nullable Pneumatics pneumatics,
@Nullable IntakeSingleRollerPneumatic intake,
@NotNull @JsonProperty(required = true) Logger logger,
@NotNull @JsonProperty(required = true) MappedRunnable updater,
@NotNull @JsonProperty(required = true) DriveTalonCluster drive,
@NotNull @JsonProperty(required = true) OI oi,
@NotNull @JsonProperty(required = true) YamlCommand defaultDriveCommand,
@Nullable YamlCommand startupCommand){
this.buttons = buttons;
this.intake = intake;
this.shooter = shooter;
this.pneumatics = pneumatics;
this.logger = logger;
this.updater = updater;
this.drive = drive;
this.oi = oi;
this.defaultDriveCommand = defaultDriveCommand.getCommand();
this.startupCommand = startupCommand != null ? startupCommand.getCommand() : null;
}
示例2: RobotMap
import org.usfirst.frc.team449.robot.oi.buttons.CommandButton; //导入依赖的package包/类
/**
* Default constructor.
*
* @param buttons The buttons for controlling this robot. Can be null for an empty list.
* @param logger The logger for recording events and telemetry data.
* @param updater A runnable that updates cached variables.
* @param defaultCommands The default commands for various subsystems.
* @param autoStartupCommand The command to be run when first enabled in autonomous mode.
* @param teleopStartupCommand The command to be run when first enabled in teleoperated mode.
* @param startupCommand The command to be run when first enabled.
*/
@JsonCreator
public RobotMap(@Nullable List<CommandButton> buttons,
@NotNull @JsonProperty(required = true) Logger logger,
@NotNull @JsonProperty(required = true) MappedRunnable updater,
@Nullable List<DefaultCommand> defaultCommands,
@Nullable Command autoStartupCommand,
@Nullable Command teleopStartupCommand,
@Nullable Command startupCommand) {
this.buttons = buttons != null ? buttons : new ArrayList<>();
this.logger = logger;
this.updater = updater;
this.defaultCommands = defaultCommands;
this.autoStartupCommand = autoStartupCommand;
this.teleopStartupCommand = teleopStartupCommand;
this.startupCommand = startupCommand;
}
示例3: getButtons
import org.usfirst.frc.team449.robot.oi.buttons.CommandButton; //导入依赖的package包/类
public List<CommandButton> getButtons() {
return buttons;
}
示例4: getButtons
import org.usfirst.frc.team449.robot.oi.buttons.CommandButton; //导入依赖的package包/类
/**
* @return The buttons for controlling this robot.
*/
@NotNull
public List<CommandButton> getButtons() {
return buttons;
}