當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。