mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Remove the test examples that don't do anything helpful Fix the PacGoat and GearsBot examples to compile Change-Id: Ic11ca7a97a5b52524fe60dc24fcec6ecfae7ebb7
22 lines
660 B
C++
22 lines
660 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"
|
|
#include "Commands/CheckForHotGoal.h"
|
|
|
|
DriveAndShootAutonomous::DriveAndShootAutonomous() {
|
|
AddSequential(new CloseClaw());
|
|
AddSequential(new WaitForPressure(), 2);
|
|
#ifdef REAL
|
|
// NOTE: Simulation doesn't currently have the concept of hot.
|
|
AddSequential(new CheckForHotGoal(2));
|
|
#endif
|
|
AddSequential(new SetPivotSetpoint(45));
|
|
AddSequential(new DriveForward(8, 0.3));
|
|
AddSequential(new Shoot());
|
|
}
|