Moves C++ templates and examples to match gradle setup (#1065)

This commit is contained in:
Thad House
2018-05-15 21:25:24 -07:00
committed by Peter Johnson
parent d564e19ef3
commit cff475c1fc
112 changed files with 108 additions and 99 deletions

View File

@@ -5,15 +5,15 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Autonomous.h"
#include "Commands/Autonomous.h"
#include "CloseClaw.h"
#include "DriveStraight.h"
#include "Pickup.h"
#include "Place.h"
#include "PrepareToPickup.h"
#include "SetDistanceToBox.h"
#include "SetWristSetpoint.h"
#include "Commands/CloseClaw.h"
#include "Commands/DriveStraight.h"
#include "Commands/Pickup.h"
#include "Commands/Place.h"
#include "Commands/PrepareToPickup.h"
#include "Commands/SetDistanceToBox.h"
#include "Commands/SetWristSetpoint.h"
Autonomous::Autonomous() : frc::CommandGroup("Autonomous") {
AddSequential(new PrepareToPickup());

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "CloseClaw.h"
#include "Commands/CloseClaw.h"
#include "../Robot.h"
#include "Robot.h"
CloseClaw::CloseClaw() : frc::Command("CloseClaw") { Requires(&Robot::claw); }

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "DriveStraight.h"
#include "Commands/DriveStraight.h"
#include "../Robot.h"
#include "Robot.h"
DriveStraight::DriveStraight(double distance) {
Requires(&Robot::drivetrain);

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "OpenClaw.h"
#include "Commands/OpenClaw.h"
#include "../Robot.h"
#include "Robot.h"
OpenClaw::OpenClaw() : frc::Command("OpenClaw") {
Requires(&Robot::claw);

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Pickup.h"
#include "Commands/Pickup.h"
#include "CloseClaw.h"
#include "SetElevatorSetpoint.h"
#include "SetWristSetpoint.h"
#include "Commands/CloseClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/SetWristSetpoint.h"
Pickup::Pickup() : frc::CommandGroup("Pickup") {
AddSequential(new CloseClaw());

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Place.h"
#include "Commands/Place.h"
#include "OpenClaw.h"
#include "SetElevatorSetpoint.h"
#include "SetWristSetpoint.h"
#include "Commands/OpenClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/SetWristSetpoint.h"
Place::Place() : frc::CommandGroup("Place") {
AddSequential(new SetElevatorSetpoint(0.25));

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "PrepareToPickup.h"
#include "Commands/PrepareToPickup.h"
#include "OpenClaw.h"
#include "SetElevatorSetpoint.h"
#include "SetWristSetpoint.h"
#include "Commands/OpenClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/SetWristSetpoint.h"
PrepareToPickup::PrepareToPickup() : frc::CommandGroup("PrepareToPickup") {
AddParallel(new OpenClaw());

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "SetDistanceToBox.h"
#include "Commands/SetDistanceToBox.h"
#include <PIDController.h>
#include "../Robot.h"
#include "Robot.h"
SetDistanceToBox::SetDistanceToBox(double distance) {
Requires(&Robot::drivetrain);

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "SetElevatorSetpoint.h"
#include "Commands/SetElevatorSetpoint.h"
#include <cmath>
#include "../Robot.h"
#include "Robot.h"
SetElevatorSetpoint::SetElevatorSetpoint(double setpoint)
: frc::Command("SetElevatorSetpoint") {

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "SetWristSetpoint.h"
#include "Commands/SetWristSetpoint.h"
#include "../Robot.h"
#include "Robot.h"
SetWristSetpoint::SetWristSetpoint(double setpoint)
: frc::Command("SetWristSetpoint") {

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "TankDriveWithJoystick.h"
#include "Commands/TankDriveWithJoystick.h"
#include "../Robot.h"
#include "Robot.h"
TankDriveWithJoystick::TankDriveWithJoystick()
: frc::Command("TankDriveWithJoystick") {

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Claw.h"
#include "Subsystems/Claw.h"
Claw::Claw() : frc::Subsystem("Claw") {
// Let's show everything on the LiveWindow

View File

@@ -5,12 +5,12 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "DriveTrain.h"
#include "Subsystems/DriveTrain.h"
#include <Joystick.h>
#include <SmartDashboard/SmartDashboard.h>
#include "../Commands/TankDriveWithJoystick.h"
#include "Commands/TankDriveWithJoystick.h"
DriveTrain::DriveTrain() : frc::Subsystem("DriveTrain") {
// Encoders may measure differently in the real world and in

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Elevator.h"
#include "Subsystems/Elevator.h"
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SmartDashboard.h>

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Wrist.h"
#include "Subsystems/Wrist.h"
#include <SmartDashboard/SmartDashboard.h>