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


C++ AddSequential函数代码示例

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


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

示例1: AddSequential

AutonomousModeFastOneBall::AutonomousModeFastOneBall()
{
  AddSequential(new AutonomousLowGearCommand());
  AddParallel(new OperatorHighCommand());
  AddSequential(new AutonomousDriveCommand(1.0f, TURN_CORRECTION, 2.2));
  AddSequential(new DriveLaunchReleaseCommand());
}
开发者ID:1maithripal1,项目名称:AerialAssist2014,代码行数:7,代码来源:AutonomousModeFastOneBall.cpp

示例2: CommandGroup

AutonCheval::AutonCheval() : CommandGroup("AutonCheval")
{

	// Add Commands here:
	// e.g. AddSequential(new Command1());
	//      AddSequential(new Command2());
	// these will run in order.

	// To run multiple commands at the same time,
	// use AddParallel()
	// e.g. AddParallel(new Command1());
	//
	//AddSequential(new Command2());
	// Command1 and Command2 will run in parallel.

	// A command group will require all of the subsystems that each member
	// would require.
	// e.g. if Command1 requires chassis, and Command2 requires arm,
	// a CommandGroup containing them would require both the chassis and the
	// arm.
	AddSequential(new DriveForwardReach());
	AddSequential(new ArmLowerLowGoal());
	AddSequential(new ArmLowerLowGoal());
	AddSequential(new DriveWait());
	AddSequential(new DriveForwardReach());
	//AddSequential(new ArmRaise());

}
开发者ID:kearsleyrobotics,项目名称:2016_git,代码行数:28,代码来源:AutonCheval.cpp

示例3: AddSequential

LowNoShoot::LowNoShoot()
{
	// Add Commands here:
	// e.g. AddSequential(new Command1());
	//      AddSequential(new Command2());
	// these will run in order.

	// To run multiple commands at the same time,
	// use AddParallel()
	// e.g. AddParallel(new Command1());
	//      AddSequential(new Command2());
	// Command1 and Command2 will run in parallel.

	// A command group will require all of the subsystems that each member
	// would require.
	// e.g. if Command1 requires chassis, and Command2 requires arm,
	// a CommandGroup containing them would require both the chassis and the
	// arm.
	AddSequential(new ResetGyro());
	AddSequential(new FoldIntakeOut(), 1);
	AddSequential(new TurnForAngle(.3, 0), .5);
	AddSequential(new DriveForTime(.45,0),3.75);
//	AddSequential(new AutoRollerIn(), 1);
	//AddSequential(new IntakeCommand(), .1);
	AddSequential(new DriveUntilClose(.4,94));
}
开发者ID:frc4646,项目名称:frc4646-2016-competition-code,代码行数:26,代码来源:LowNoShoot.cpp

示例4: AddParallel

MoveRocketLevel2::MoveRocketLevel2() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
     // Add Commands here:
    // e.g. AddSequential(new Command1());
    //      AddSequential(new Command2());
    // these will run in order.

    // To run multiple commands at the same time,
    // use AddParallel()
    // e.g. AddParallel(new Command1());
    //      AddSequential(new Command2());
    // Command1 and Command2 will run in parallel.

    // A command group will require all of the subsystems that each member
    // would require.
    // e.g. if Command1 requires chassis, and Command2 requires arm,
    // a CommandGroup containing them would require both the chassis and the
    // arm.
              // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
        AddParallel(new ELRun(3));
        AddSequential(new WRRun(3));
        AddSequential(new EBRun(3));
              // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
        std::printf("2135: Moved to Rocket Level 2 Position\n");
 }
开发者ID:usfirst-frc-2135,项目名称:software,代码行数:25,代码来源:MoveRocketLevel2.cpp

示例5: AddSequential

AlignVerticalAndHorizontal::AlignVerticalAndHorizontal(float angle)
{
	AddSequential(new GoalAlignVertical(101));
	AddSequential(new GoalAlign(angle));
	//AddSequential(new DriveCommandAuto(0,0,0,.5,0));

}
开发者ID:team2053tigertronics,项目名称:TestRobot2016,代码行数:7,代码来源:AlignVerticalAndHorizontal.cpp

示例6: AddSequential

IntakePositionSequence::IntakePositionSequence(TurretState state, ReleaseState ball) {
	AddSequential(new SetArmPosition(c_armIntakePosition));
	AddParallel(new AutoIntake());
	AddParallel(new SetTurretCylinder(state));
	AddSequential(new BallRelease(ball));
	//trigger stuff for low bar. sensors are not on robot. cannot yet happen.
}
开发者ID:2826WaveRobotics,项目名称:Stronghold2016,代码行数:7,代码来源:IntakePositionSequence.cpp

示例7: AddParallel

LiftContainerAuto::LiftContainerAuto() {
	AddParallel(new CloseClaw());
	AddParallel(new ResetToteNew());
	AddSequential(new ResetClaw());
	AddSequential(new CloseClaw());
	AddSequential(new ContainerPositionChange(5));
}
开发者ID:CRRobotics,项目名称:Robots,代码行数:7,代码来源:LiftContainerAuto.cpp

示例8: AddParallel

LowShot::LowShot() {
  AddParallel(new PositionDrive(40));
  AddSequential(new SetWinchPosition(1, true, 2));

  AddParallel(new LowGoalShoot(2));
  AddParallel(new Feed(2));
  AddSequential(new SetWheelsTwist(2));

  AddParallel(new SetWinchPosition(2, false, 4));
  AddSequential(new StopShoot());
  // Add Commands here:
  // e.g. AddSequential(new Command1());
  //      AddSequential(new Command2());
  // these will run in order.

  // To run multiple commands at the same time,
  // use AddParallel()
  // e.g. AddParallel(new Command1());
  //      AddSequential(new Command2());
  // Command1 and Command2 will run in parallel.

  // A command group will require all of the subsystems that each member
  // would require.
  // e.g. if Command1 requires chassis, and Command2 requires arm,
  // a CommandGroup containing them would require both the chassis and the
  // arm.
}
开发者ID:FRC-Team-4143,项目名称:Stronghold2016,代码行数:27,代码来源:LowShot.cpp

示例9: AddSequential

DriveUnderPort::DriveUnderPort()
{


	AddSequential(new DriveSetDistance(100));
	AddSequential(new lowerEverything());
	AddSequential(new DriveSetDistance(25));
	AddSequential(new LiftLoader());
	AddSequential(new DriveSetDistance(100));


	// Add Commands here:
	// e.g. AddSequential(new Command1());
	//      AddSequential(new Command2());
	// these will run in order.

	// To run multiple commands at the same time,
	// use AddParallel()
	// e.g. AddParallel(new Command1());
	//      AddSequential(new Command2());
	// Command1 and Command2 will run in parallel.

	// A command group will require all of the subsystems that each member
	// would require.
	// e.g. if Command1 requires chassis, and Command2 requires arm,
	// a CommandGroup containing them would require both the chassis and the
	// arm.
}
开发者ID:team3408,项目名称:WEDIDITGUYS--COMMANDBASED,代码行数:28,代码来源:DriveUnderPort.cpp

示例10: AddParallel

AutoPos1Level2Ship::AutoPos1Level2Ship() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
     // Add Commands here:
    // e.g. AddSequential(new Command1());
    //      AddSequential(new Command2());
    // these will run in order.

    // To run multiple commands at the same time,
    // use AddParallel()
    // e.g. AddParallel(new Command1());
    //      AddSequential(new Command2());
    // Command1 and Command2 will run in parallel.

    // A command group will require all of the subsystems that each member
    // would require.
    // e.g. if Command1 requires chassis, and Command2 requires arm,
    // a CommandGroup containing them would require both the chassis and the
    // arm.
              // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
                AddParallel(new EBBump(false));
        AddParallel(new ELRun(0));
        AddParallel(new WRRun(0));
        AddSequential(new AutoDriveDist(0));
        AddSequential(new AutoDriveTurn(0));
        AddParallel(new INDelivery(false));
        AddSequential(new AutoStop());
              // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
 }
开发者ID:usfirst-frc-2135,项目名称:software,代码行数:28,代码来源:AutoPos1Level2Ship.cpp

示例11: CommandGroup

CollectMode::CollectMode() : CommandGroup("CollectMode")
{
    AddParallel(new StopShooter());
    AddSequential(new LowerInjectorAndOpenFingers());
    AddSequential(new StartCollector());
    AddSequential(new LowerBridge());
}
开发者ID:errorcodexero,项目名称:betacommand,代码行数:7,代码来源:CollectMode.cpp

示例12: AddSequential

AutoPosANYMove::AutoPosANYMove() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
     // Add Commands here:
    // e.g. AddSequential(new Command1());
    //      AddSequential(new Command2());
    // these will run in order.

    // To run multiple commands at the same time,
    // use AddParallel()
    // e.g. AddParallel(new Command1());
    //      AddSequential(new Command2());
    // Command1 and Command2 will run in parallel.

    // A command group will require all of the subsystems that each member
    // would require.
    // e.g. if Command1 requires chassis, and Command2 requires arm,
    // a CommandGroup containing them would require both the chassis and the
    // arm.
	frc2135::RobotConfig* config = frc2135::RobotConfig::GetInstance();
	double	cmdDistance;

	config->GetValueAsDouble("AutoPosANYMove", cmdDistance, 97.25);
	std::printf("2135: Auto Pos ANY Move - Init %5.3f inches\n", cmdDistance);

              // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
                AddSequential(new AutoDriveDist(cmdDistance));
			AddSequential(new AutoStop());
              // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
 }
开发者ID:usfirst-frc-2135,项目名称:software,代码行数:29,代码来源:AutoPosANYMove.cpp

示例13: AddParallel

AutonomousPlayLeft::AutonomousPlayLeft() {
    // Add Commands here:
    // e.g. AddSequential(new Command1());
    //      AddSequential(new Command2());
    // these will run in order.

    AddParallel(new CameraUp(true));
    AddSequential(new ShootNow(true, 1.5,false));
    AddSequential(new DriveDistance(false,-16,125,false));
    //AddSequential(new WaitTime(1.0));
    AddSequential(new DriveDistance(true,85,125,false));
    //AddSequential(new WaitTime(1.0));
    AddParallel(new ShootNow(true, 10.0,true));
    AddSequential(new DriveDistance(false,18,125,false));
    AddSequential(new CameraUp(false));
    // To run multiple commands at the same time,
    // use AddParallel()
    // e.g. AddParallel(new Command1());
    //      AddSequential(new Command2());
    // Command1 and Command2 will run in parallel.

    // A command group will require all of the subsystems that each member
    // would require.
    // e.g. if Command1 requires chassis, and Command2 requires arm,
    // a CommandGroup containing them would require both the chassis and the
    // arm.
}
开发者ID:kauailabs,项目名称:kauaibotsfirst2010,代码行数:27,代码来源:AutonomousPlayLeft.cpp

示例14: AddSequential

AutonomousDriveLowBarShootLow::AutonomousDriveLowBarShootLow() {
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
     // Add Commands here:
    // e.g. AddSequential(new Command1());
    //      AddSequential(new Command2());
    // these will run in order.

    // To run multiple commands at the same time,
    // use AddParallel()
    // e.g. AddParallel(new Command1());
    //      AddSequential(new Command2());
    // Command1 and Command2 will run in parallel.

    // A command group will require all of the subsystems that each member
    // would require.
    // e.g. if Command1 requires chassis, and Command2 requires arm,
    // a CommandGroup containing them would require both the chassis and the
    // arm.
              // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
                      // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS
	AddSequential (new ShooterInitialize);
	AddSequential (new AutonomousMotionProfile(&AutonomousDrivePastLowBar_60ips));
	AddSequential (new AutonomousMotionProfile(&Rotate60Clockwise,&Rotate60Clockwise));
	AddSequential (new AutonomousFireBoulderLow());


 }
开发者ID:Team2170,项目名称:FRC-2016,代码行数:27,代码来源:AutonomousDriveLowBarShootLow.cpp

示例15: AddParallel

AutonomousCommand3::AutonomousCommand3() {
	//Working 1 bin autonomous; don't delete
	//This commented out code makes the robot move a recycling bin to the auto zone, uncomment if useful.
	/*
	AddParallel(new DriveForward250());
	AddSequential(new RollersIn());
	AddParallel(new DriveForward250());
	AddSequential(new ElevatorUp());
	AddSequential(new Turn90CounterClockwise());
	AddSequential(new DriveForward750());
	*/

	//This is REALLY tentative.
	//TODO Lot of testing
	/*
	AddParallel(new RollersIn());
	AddSequential(new DriveForward250());
	AddSequential(new Turn90CounterClockwise());
	AddSequential(new DriveForward250());
	*/

	// This code has the robot start facing the driver's station and picks up a can and drives backward into the auto zone.
	AddParallel(new DriveForward250());
	AddSequential(new RollersIn());
	AddSequential(new DriveForward100());
	AddSequential(new ElevatorUp());
	AddSequential(new DriveBackward1000());
	//AddSequential(new DriveForward250());
}
开发者ID:AmanK7852,项目名称:Robot2015,代码行数:29,代码来源:AutonomousCommand3.cpp


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