Files
allwpilib/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp

21 lines
622 B
C++
Raw Normal View History

#include "DriveAndShootAutonomous.h"
#include "Robot.h"
#include "Commands/WaitForPressure.h"
#include "Commands/CloseClaw.h"
#include "Commands/SetPivotSetpoint.h"
#include "Commands/DriveForward.h"
#include "Commands/Shoot.h"
DriveAndShootAutonomous::DriveAndShootAutonomous() {
AddSequential(new WaitForPressure(), 2);
#ifdef REAL
// NOTE: Simulation doesn't currently have the concept of hot.
AddSequential(new CheckForHotGoal(2));
#endif
AddSequential(new CloseClaw());
AddSequential(new SetPivotSetpoint(45));
AddSequential(new DriveForward(8, 0.4));
AddSequential(new Shoot());
}