mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
21 lines
622 B
C++
21 lines
622 B
C++
|
|
#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());
|
||
|
|
}
|