From c7e17b8e3512e300ac9ab07acc688bfc3875f641 Mon Sep 17 00:00:00 2001 From: Alex Henning Date: Tue, 24 Jun 2014 16:54:17 -0700 Subject: [PATCH] Added PacGoat code for C++. Change-Id: I4fd19fbdc65c25c5bbcdce937a31bc6fa1c11cb4 --- .../resources/templates/.cproject | 4 +- .../PacGoat/src/Commands/CheckForHotGoal.cpp | 25 ++++ .../PacGoat/src/Commands/CheckForHotGoal.h | 22 ++++ .../PacGoat/src/Commands/CloseClaw.cpp | 27 ++++ .../examples/PacGoat/src/Commands/CloseClaw.h | 22 ++++ .../examples/PacGoat/src/Commands/Collect.cpp | 14 +++ .../examples/PacGoat/src/Commands/Collect.h | 14 +++ .../src/Commands/DriveAndShootAutonomous.cpp | 20 +++ .../src/Commands/DriveAndShootAutonomous.h | 15 +++ .../PacGoat/src/Commands/DriveForward.cpp | 55 ++++++++ .../PacGoat/src/Commands/DriveForward.h | 29 +++++ .../src/Commands/DriveWithJoystick.cpp | 31 +++++ .../PacGoat/src/Commands/DriveWithJoystick.h | 20 +++ .../PacGoat/src/Commands/ExtendShooter.cpp | 32 +++++ .../PacGoat/src/Commands/ExtendShooter.h | 19 +++ .../examples/PacGoat/src/Commands/LowGoal.cpp | 12 ++ .../examples/PacGoat/src/Commands/LowGoal.h | 14 +++ .../PacGoat/src/Commands/OpenClaw.cpp | 27 ++++ .../examples/PacGoat/src/Commands/OpenClaw.h | 19 +++ .../src/Commands/SetCollectionSpeed.cpp | 28 +++++ .../PacGoat/src/Commands/SetCollectionSpeed.h | 23 ++++ .../PacGoat/src/Commands/SetPivotSetpoint.cpp | 30 +++++ .../PacGoat/src/Commands/SetPivotSetpoint.h | 24 ++++ .../examples/PacGoat/src/Commands/Shoot.cpp | 14 +++ .../examples/PacGoat/src/Commands/Shoot.h | 14 +++ .../PacGoat/src/Commands/WaitForBall.cpp | 26 ++++ .../PacGoat/src/Commands/WaitForBall.h | 21 ++++ .../PacGoat/src/Commands/WaitForPressure.cpp | 27 ++++ .../PacGoat/src/Commands/WaitForPressure.h | 20 +++ .../templates/examples/PacGoat/src/OI.cpp | 40 ++++++ .../templates/examples/PacGoat/src/OI.h | 17 +++ .../templates/examples/PacGoat/src/Robot.cpp | 90 ++++++++++++++ .../templates/examples/PacGoat/src/Robot.h | 48 +++++++ .../PacGoat/src/Subsystems/Collector.cpp | 43 +++++++ .../PacGoat/src/Subsystems/Collector.h | 70 +++++++++++ .../PacGoat/src/Subsystems/DriveTrain.cpp | 85 +++++++++++++ .../PacGoat/src/Subsystems/DriveTrain.h | 62 ++++++++++ .../examples/PacGoat/src/Subsystems/Pivot.cpp | 53 ++++++++ .../examples/PacGoat/src/Subsystems/Pivot.h | 61 +++++++++ .../PacGoat/src/Subsystems/Pneumatics.cpp | 44 +++++++ .../PacGoat/src/Subsystems/Pneumatics.h | 46 +++++++ .../PacGoat/src/Subsystems/Shooter.cpp | 88 +++++++++++++ .../examples/PacGoat/src/Subsystems/Shooter.h | 117 ++++++++++++++++++ .../PacGoat/src/Triggers/DoubleButton.cpp | 19 +++ .../PacGoat/src/Triggers/DoubleButton.h | 24 ++++ .../resources/templates/examples/examples.xml | 106 +++++++++++++++- .../team190/pacgoat/commands/CloseClaw.java | 2 +- 47 files changed, 1659 insertions(+), 4 deletions(-) create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/CheckForHotGoal.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/CheckForHotGoal.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/CloseClaw.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/CloseClaw.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/Collect.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/Collect.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveAndShootAutonomous.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveForward.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveForward.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveWithJoystick.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/DriveWithJoystick.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/ExtendShooter.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/ExtendShooter.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/LowGoal.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/LowGoal.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/OpenClaw.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/OpenClaw.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/SetCollectionSpeed.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/SetCollectionSpeed.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/SetPivotSetpoint.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/SetPivotSetpoint.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/Shoot.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/Shoot.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/WaitForBall.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/WaitForBall.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/WaitForPressure.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Commands/WaitForPressure.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/OI.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/OI.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Robot.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Robot.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Collector.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Collector.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/DriveTrain.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/DriveTrain.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Pivot.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Pivot.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Pneumatics.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Pneumatics.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Shooter.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Subsystems/Shooter.h create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Triggers/DoubleButton.cpp create mode 100644 eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/examples/PacGoat/src/Triggers/DoubleButton.h diff --git a/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/.cproject b/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/.cproject index 1f7bf740af..c4d783aa48 100644 --- a/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/.cproject +++ b/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/.cproject @@ -152,8 +152,8 @@ - - + +