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


C++ SetDefaultCommand函数代码示例

本文整理汇总了C++中SetDefaultCommand函数的典型用法代码示例。如果您正苦于以下问题:C++ SetDefaultCommand函数的具体用法?C++ SetDefaultCommand怎么用?C++ SetDefaultCommand使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetDefaultCommand函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SetDefaultCommand

void KickerSubsystem::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new KickerSupervisorCommand());
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:nowireless,项目名称:FRC2014TestCode,代码行数:7,代码来源:KickerSubsystem.cpp

示例2: SetDefaultCommand

void ShooterSubsystem::InitDefaultCommand()
{
	SetDefaultCommand( new ShooterIdleCommand() );
	shooterJaguar.ConfigEncoderCodesPerRev(360) ;
	shooterJaguar.SetPositionReference(CANJaguar::kPosRef_QuadEncoder);
	tensionerJaguar.SetPositionReference(CANJaguar::kPosRef_Potentiometer);
}
开发者ID:Nashoba-Robotics,项目名称:Nashoba-Robotics2012,代码行数:7,代码来源:ShooterSubsystem.cpp

示例3: DriveCommand

void DriveBase::InitDefaultCommand()
{
    if (!m_defaultCommand) {
	m_defaultCommand = new DriveCommand();
	SetDefaultCommand(m_defaultCommand);
    }
}
开发者ID:errorcodexero,项目名称:beta,代码行数:7,代码来源:DriveBase.cpp

示例4: SetDefaultCommand

void Dashboard14::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new SendToDashboard());
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:FRCTeam1073-TheForceTeam,项目名称:robot14,代码行数:7,代码来源:Dashboard14.cpp

示例5: SetDefaultCommand

void Magazine::InitDefaultCommand() {
    // Set the default command for a subsystem here.
    //SetDefaultCommand(new MySpecialCommand());
    SetDefaultCommand(new FireFrisbee());
    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:kauailabs,项目名称:kauaibotsfirst2010,代码行数:7,代码来源:Magazine.cpp

示例6: SetDefaultCommand

void Drive::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new JoystickHDrive());
	// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:Drive.cpp

示例7: SetDefaultCommand

void BusterDrive::InitDefaultCommand()
{
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	SetDefaultCommand(new DriveWithJoysticks());
	DriveTrain.SetSafetyEnabled(false);
}
开发者ID:frc4646,项目名称:offseason-mecanum-experiment,代码行数:7,代码来源:BusterDrive.cpp

示例8: SetDefaultCommand

void ToteStacker::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new ToteDriveTowardsSetPoint());
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:ToteStacker.cpp

示例9: SetDefaultCommand

void ContainerStacker::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new RunClawToPos());
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:ContainerStacker.cpp

示例10: SetDefaultCommand

void Lifter::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new TeleopLift());
	// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:4329,项目名称:Reggie2,代码行数:7,代码来源:Lifter.cpp

示例11: SetDefaultCommand

void AirCompressor::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new CompressorRun());
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:GLBR,项目名称:2014_BigBallBot,代码行数:7,代码来源:AirCompressor.cpp

示例12: SetDefaultCommand

void Loader::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new SendCamHome());
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:Loader.cpp

示例13: SetDefaultCommand

void Acquisition::InitDefaultCommand() {
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	SetDefaultCommand(new StopWheels());
	// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:Acquisition.cpp

示例14: DYNAMIC_DOWNCAST

//*****************************************************************************************
void CBCGPDropDownToolbarButton::Serialize (CArchive& ar)
{
	CBCGPToolbarButton::Serialize (ar);
	
	UINT uiToolbarResID = 0;

	if (ar.IsLoading ())
	{
		m_pToolBar = NULL;

		ar >> uiToolbarResID;
		ar >> m_strName;
		ar >> m_iSelectedImage;

		// Find toolbar with required resource ID:
		for (POSITION pos = gAllToolbars.GetHeadPosition (); pos != NULL;)
		{
			CBCGPDropDownToolBar* pToolBar = DYNAMIC_DOWNCAST (CBCGPDropDownToolBar,
				gAllToolbars.GetNext (pos));

			if (pToolBar != NULL &&
				CWnd::FromHandlePermanent (pToolBar->m_hWnd) != NULL)
			{
				ASSERT_VALID (pToolBar);
				if (pToolBar->m_uiOriginalResID == uiToolbarResID)
				{
					m_pToolBar = pToolBar;
					break;
				}
			}
		}

		SetDefaultCommand (m_nID);
	}
开发者ID:iclosure,项目名称:jframework,代码行数:35,代码来源:BCGPDropDown.cpp

示例15: SetDefaultCommand

void DropDrive::InitDefaultCommand()
{
	// Set the default command for a subsystem here.
	//SetDefaultCommand(new MySpecialCommand());
	SetDefaultCommand(new TankDrive());
	DriveTrain.SetSafetyEnabled(false);

}
开发者ID:gitter-badger,项目名称:frc4646-2016-competition-code,代码行数:8,代码来源:DropDrive.cpp


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