本文整理汇总了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());
}
示例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());
}
示例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));
}
示例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");
}
示例5: AddSequential
AlignVerticalAndHorizontal::AlignVerticalAndHorizontal(float angle)
{
AddSequential(new GoalAlignVertical(101));
AddSequential(new GoalAlign(angle));
//AddSequential(new DriveCommandAuto(0,0,0,.5,0));
}
示例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.
}
示例7: AddParallel
LiftContainerAuto::LiftContainerAuto() {
AddParallel(new CloseClaw());
AddParallel(new ResetToteNew());
AddSequential(new ResetClaw());
AddSequential(new CloseClaw());
AddSequential(new ContainerPositionChange(5));
}
示例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.
}
示例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.
}
示例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
}
示例11: CommandGroup
CollectMode::CollectMode() : CommandGroup("CollectMode")
{
AddParallel(new StopShooter());
AddSequential(new LowerInjectorAndOpenFingers());
AddSequential(new StartCollector());
AddSequential(new LowerBridge());
}
示例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
}
示例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.
}
示例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());
}
示例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());
}