Move CameraServer and WPILib headers into their own folder

The old headers were moved into folders because doing so avoids polluting
the system include directories.

Folder names were also normalized to lowercase.
This commit is contained in:
Tyler Veness
2018-07-20 00:03:45 -07:00
committed by Peter Johnson
parent 31ced30c1e
commit d89b7dd412
728 changed files with 1876 additions and 1851 deletions

View File

@@ -7,15 +7,15 @@
#include "OI.h"
#include <SmartDashboard/SmartDashboard.h>
#include <frc/smartdashboard/SmartDashboard.h>
#include "Commands/Autonomous.h"
#include "Commands/CloseClaw.h"
#include "Commands/OpenClaw.h"
#include "Commands/Pickup.h"
#include "Commands/Place.h"
#include "Commands/PrepareToPickup.h"
#include "Commands/SetElevatorSetpoint.h"
#include "commands/Autonomous.h"
#include "commands/CloseClaw.h"
#include "commands/OpenClaw.h"
#include "commands/Pickup.h"
#include "commands/Place.h"
#include "commands/PrepareToPickup.h"
#include "commands/SetElevatorSetpoint.h"
OI::OI() {
frc::SmartDashboard::PutData("Open Claw", new OpenClaw());

View File

@@ -5,15 +5,15 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/Autonomous.h"
#include "commands/Autonomous.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"
#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,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/CloseClaw.h"
#include "commands/CloseClaw.h"
#include "Robot.h"

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/DriveStraight.h"
#include "commands/DriveStraight.h"
#include "Robot.h"

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/OpenClaw.h"
#include "commands/OpenClaw.h"
#include "Robot.h"

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/Pickup.h"
#include "commands/Pickup.h"
#include "Commands/CloseClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/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 "Commands/Place.h"
#include "commands/Place.h"
#include "Commands/OpenClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/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 "Commands/PrepareToPickup.h"
#include "commands/PrepareToPickup.h"
#include "Commands/OpenClaw.h"
#include "Commands/SetElevatorSetpoint.h"
#include "Commands/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,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/SetDistanceToBox.h"
#include "commands/SetDistanceToBox.h"
#include <PIDController.h>
#include <frc/PIDController.h>
#include "Robot.h"

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/SetElevatorSetpoint.h"
#include "commands/SetElevatorSetpoint.h"
#include <cmath>

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/SetWristSetpoint.h"
#include "commands/SetWristSetpoint.h"
#include "Robot.h"

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/TankDriveWithJoystick.h"
#include "commands/TankDriveWithJoystick.h"
#include "Robot.h"

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/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 "Subsystems/DriveTrain.h"
#include "subsystems/DriveTrain.h"
#include <Joystick.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/Joystick.h>
#include <frc/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,10 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Elevator.h"
#include "subsystems/Elevator.h"
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/livewindow/LiveWindow.h>
#include <frc/smartdashboard/SmartDashboard.h>
Elevator::Elevator() : frc::PIDSubsystem("Elevator", kP_real, kI_real, 0.0) {
#ifdef SIMULATION // Check for simulation and update PID values

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Wrist.h"
#include "subsystems/Wrist.h"
#include <SmartDashboard/SmartDashboard.h>
#include <frc/smartdashboard/SmartDashboard.h>
Wrist::Wrist() : frc::PIDSubsystem("Wrist", kP_real, 0.0, 0.0) {
#ifdef SIMULATION // Check for simulation and update PID values

View File

@@ -7,8 +7,8 @@
#pragma once
#include <Buttons/JoystickButton.h>
#include <Joystick.h>
#include <frc/Joystick.h>
#include <frc/buttons/JoystickButton.h>
class OI {
public:

View File

@@ -7,18 +7,18 @@
#pragma once
#include <Commands/Command.h>
#include <Commands/Scheduler.h>
#include <IterativeRobot.h>
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/IterativeRobot.h>
#include <frc/commands/Command.h>
#include <frc/commands/Scheduler.h>
#include <frc/livewindow/LiveWindow.h>
#include <frc/smartdashboard/SmartDashboard.h>
#include "Commands/Autonomous.h"
#include "OI.h"
#include "Subsystems/Claw.h"
#include "Subsystems/DriveTrain.h"
#include "Subsystems/Elevator.h"
#include "Subsystems/Wrist.h"
#include "commands/Autonomous.h"
#include "subsystems/Claw.h"
#include "subsystems/DriveTrain.h"
#include "subsystems/Elevator.h"
#include "subsystems/Wrist.h"
class Robot : public frc::IterativeRobot {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* The main autonomous command to pickup and deliver the soda to the box.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Opens the claw for one second. Real robots should use sensors, stalling

View File

@@ -7,10 +7,10 @@
#pragma once
#include <Commands/Command.h>
#include <PIDController.h>
#include <PIDOutput.h>
#include <PIDSource.h>
#include <frc/PIDController.h>
#include <frc/PIDOutput.h>
#include <frc/PIDSource.h>
#include <frc/commands/Command.h>
/**
* Drive the given distance straight (negative values go backwards).

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Opens the claw for one second. Real robots should use sensors, stalling

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Pickup a soda can (if one is between the open claws) and

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Place a held soda can onto the platform.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Make sure the robot is in a state to pickup soda cans.

View File

@@ -7,10 +7,10 @@
#pragma once
#include <Commands/Command.h>
#include <PIDController.h>
#include <PIDOutput.h>
#include <PIDSource.h>
#include <frc/PIDController.h>
#include <frc/PIDOutput.h>
#include <frc/PIDSource.h>
#include <frc/commands/Command.h>
/**
* Drive until the robot is the given distance away from the box. Uses a local

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Move the elevator to a given location. This command finishes when it is

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Move the wrist to a given angle. This command finishes when it is within

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Have the robot drive tank style using the PS3 Joystick until interrupted.

View File

@@ -7,9 +7,9 @@
#pragma once
#include <Commands/Subsystem.h>
#include <DigitalInput.h>
#include <Spark.h>
#include <frc/DigitalInput.h>
#include <frc/Spark.h>
#include <frc/commands/Subsystem.h>
/**
* The claw subsystem is a simple system with a motor for opening and closing.

View File

@@ -7,13 +7,13 @@
#pragma once
#include <AnalogGyro.h>
#include <AnalogInput.h>
#include <Commands/Subsystem.h>
#include <Drive/DifferentialDrive.h>
#include <Encoder.h>
#include <Spark.h>
#include <SpeedControllerGroup.h>
#include <frc/AnalogGyro.h>
#include <frc/AnalogInput.h>
#include <frc/Encoder.h>
#include <frc/Spark.h>
#include <frc/SpeedControllerGroup.h>
#include <frc/commands/Subsystem.h>
#include <frc/drive/DifferentialDrive.h>
namespace frc {
class Joystick;

View File

@@ -7,9 +7,9 @@
#pragma once
#include <AnalogPotentiometer.h>
#include <Commands/PIDSubsystem.h>
#include <Spark.h>
#include <frc/AnalogPotentiometer.h>
#include <frc/Spark.h>
#include <frc/commands/PIDSubsystem.h>
/**
* The elevator subsystem uses PID to go to a given height. Unfortunately, in

View File

@@ -7,9 +7,9 @@
#pragma once
#include <AnalogPotentiometer.h>
#include <Commands/PIDSubsystem.h>
#include <Spark.h>
#include <frc/AnalogPotentiometer.h>
#include <frc/Spark.h>
#include <frc/commands/PIDSubsystem.h>
/**
* The wrist subsystem is like the elevator, but with a rotational joint instead