本文整理汇总了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
}
示例2: SetDefaultCommand
void ShooterSubsystem::InitDefaultCommand()
{
SetDefaultCommand( new ShooterIdleCommand() );
shooterJaguar.ConfigEncoderCodesPerRev(360) ;
shooterJaguar.SetPositionReference(CANJaguar::kPosRef_QuadEncoder);
tensionerJaguar.SetPositionReference(CANJaguar::kPosRef_Potentiometer);
}
示例3: DriveCommand
void DriveBase::InitDefaultCommand()
{
if (!m_defaultCommand) {
m_defaultCommand = new DriveCommand();
SetDefaultCommand(m_defaultCommand);
}
}
示例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
}
示例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
}
示例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
}
示例7: SetDefaultCommand
void BusterDrive::InitDefaultCommand()
{
// Set the default command for a subsystem here.
//SetDefaultCommand(new MySpecialCommand());
SetDefaultCommand(new DriveWithJoysticks());
DriveTrain.SetSafetyEnabled(false);
}
示例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());
}
示例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());
}
示例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
}
示例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
}
示例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());
}
示例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
}
示例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);
}
示例15: SetDefaultCommand
void DropDrive::InitDefaultCommand()
{
// Set the default command for a subsystem here.
//SetDefaultCommand(new MySpecialCommand());
SetDefaultCommand(new TankDrive());
DriveTrain.SetSafetyEnabled(false);
}