当前位置: 首页>>代码示例>>Java>>正文


Java CommandButton类代码示例

本文整理汇总了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;
}
 
开发者ID:PB020,项目名称:Ballbasaur-Code-Rewrite,代码行数:21,代码来源:RobotMap.java

示例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;
}
 
开发者ID:blair-robot-project,项目名称:449-central-repo,代码行数:28,代码来源:RobotMap.java

示例3: getButtons

import org.usfirst.frc.team449.robot.oi.buttons.CommandButton; //导入依赖的package包/类
public List<CommandButton> getButtons() {
	return buttons;
}
 
开发者ID:PB020,项目名称:Ballbasaur-Code-Rewrite,代码行数:4,代码来源:RobotMap.java

示例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;
}
 
开发者ID:blair-robot-project,项目名称:robot2017,代码行数:8,代码来源:RobotMap2017.java


注:本文中的org.usfirst.frc.team449.robot.oi.buttons.CommandButton类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。