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,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
class ReplaceMeCommand : public frc::Command {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
class ReplaceMeCommandGroup : public frc::CommandGroup {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include "Commands/InstantCommand.h"
#include <frc/commands/InstantCommand.h>
class ReplaceMeInstantCommand : public frc::InstantCommand {
public:

View File

@@ -7,8 +7,8 @@
#include "ReplaceMePIDSubsystem.h"
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/livewindow/LiveWindow.h>
#include <frc/smartdashboard/SmartDashboard.h>
ReplaceMePIDSubsystem::ReplaceMePIDSubsystem()
: PIDSubsystem("ReplaceMePIDSubsystem", 1.0, 0.0, 0.0) {

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/PIDSubsystem.h>
#include <frc/commands/PIDSubsystem.h>
class ReplaceMePIDSubsystem : public frc::PIDSubsystem {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Subsystem.h>
#include <frc/commands/Subsystem.h>
class ReplaceMeSubsystem : public frc::Subsystem {
private:

View File

@@ -7,7 +7,7 @@
#pragma once
#include "Commands/TimedCommand.h"
#include <frc/commands/TimedCommand.h>
class ReplaceMeTimedCommand : public frc::TimedCommand {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Buttons/Trigger.h>
#include <frc/buttons/Trigger.h>
class ReplaceMeTrigger : public frc::Trigger {
public:

View File

@@ -5,10 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <Drive/DifferentialDrive.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Spark.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/drive/DifferentialDrive.h>
/**
* This is a demo program showing the use of the DifferentialDrive class.

View File

@@ -5,8 +5,8 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <CameraServer.h>
#include <IterativeRobot.h>
#include <cameraserver/CameraServer.h>
#include <frc/IterativeRobot.h>
#include <opencv2/core/core.hpp>
#include <opencv2/core/types.hpp>
#include <opencv2/imgproc/imgproc.hpp>

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <IterativeRobot.h>
#include <PowerDistributionPanel.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/IterativeRobot.h>
#include <frc/PowerDistributionPanel.h>
#include <frc/smartdashboard/SmartDashboard.h>
/**
* This is a sample program showing how to retrieve information from the Power

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <Encoder.h>
#include <IterativeRobot.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/Encoder.h>
#include <frc/IterativeRobot.h>
#include <frc/smartdashboard/SmartDashboard.h>
/**
* Sample program displaying the value of a quadrature encoder on the

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

View File

@@ -5,12 +5,12 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <Drive/DifferentialDrive.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <LiveWindow/LiveWindow.h>
#include <Spark.h>
#include <Timer.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/Timer.h>
#include <frc/drive/DifferentialDrive.h>
#include <frc/livewindow/LiveWindow.h>
class Robot : public frc::IterativeRobot {
public:

View File

@@ -7,11 +7,11 @@
#include <cmath>
#include <AnalogGyro.h>
#include <Drive/DifferentialDrive.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Spark.h>
#include <frc/AnalogGyro.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/drive/DifferentialDrive.h>
/**
* This is a sample program to demonstrate how to use a gyro sensor to make a

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <AnalogGyro.h>
#include <Drive/MecanumDrive.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Spark.h>
#include <frc/AnalogGyro.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/drive/MecanumDrive.h>
/**
* This is a sample program that uses mecanum drive with a gyro sensor to

View File

@@ -7,8 +7,8 @@
#include <thread>
#include <CameraServer.h>
#include <IterativeRobot.h>
#include <cameraserver/CameraServer.h>
#include <frc/IterativeRobot.h>
#include <opencv2/core/core.hpp>
#include <opencv2/core/types.hpp>
#include <opencv2/imgproc/imgproc.hpp>

View File

@@ -5,10 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <Drive/MecanumDrive.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Spark.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/drive/MecanumDrive.h>
/**
* This is a demo program showing how to use Mecanum control with the

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Spark.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
/**
* This sample program shows how to control a motor using a joystick. In the

View File

@@ -5,11 +5,11 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <Encoder.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <SmartDashboard/SmartDashboard.h>
#include <Spark.h>
#include <frc/Encoder.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Spark.h>
#include <frc/smartdashboard/SmartDashboard.h>
constexpr double kPi = 3.14159265358979;

View File

@@ -7,15 +7,16 @@
#include "OI.h"
#include "Commands/Collect.h"
#include "Commands/DriveForward.h"
#include "Commands/LowGoal.h"
#include "Commands/SetCollectionSpeed.h"
#include "Commands/SetPivotSetpoint.h"
#include "Commands/Shoot.h"
#include "SmartDashboard/SmartDashboard.h"
#include "Subsystems/Collector.h"
#include "Subsystems/Pivot.h"
#include <frc/smartdashboard/SmartDashboard.h>
#include "commands/Collect.h"
#include "commands/DriveForward.h"
#include "commands/LowGoal.h"
#include "commands/SetCollectionSpeed.h"
#include "commands/SetPivotSetpoint.h"
#include "commands/Shoot.h"
#include "subsystems/Collector.h"
#include "subsystems/Pivot.h"
OI::OI() {
m_r1.WhenPressed(new LowGoal());

View File

@@ -9,9 +9,9 @@
#include <iostream>
#include <Commands/Scheduler.h>
#include <LiveWindow/LiveWindow.h>
#include <SmartDashboard/SmartDashboard.h>
#include <frc/commands/Scheduler.h>
#include <frc/livewindow/LiveWindow.h>
#include <frc/smartdashboard/SmartDashboard.h>
DriveTrain Robot::drivetrain;
Pivot Robot::pivot;

View File

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

View File

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

View File

@@ -5,13 +5,13 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/Collect.h"
#include "commands/Collect.h"
#include "Commands/CloseClaw.h"
#include "Commands/SetCollectionSpeed.h"
#include "Commands/SetPivotSetpoint.h"
#include "Commands/WaitForBall.h"
#include "Robot.h"
#include "commands/CloseClaw.h"
#include "commands/SetCollectionSpeed.h"
#include "commands/SetPivotSetpoint.h"
#include "commands/WaitForBall.h"
Collect::Collect() {
AddSequential(new SetCollectionSpeed(Collector::kForward));

View File

@@ -5,15 +5,15 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/DriveAndShootAutonomous.h"
#include "commands/DriveAndShootAutonomous.h"
#include "Commands/CheckForHotGoal.h"
#include "Commands/CloseClaw.h"
#include "Commands/DriveForward.h"
#include "Commands/SetPivotSetpoint.h"
#include "Commands/Shoot.h"
#include "Commands/WaitForPressure.h"
#include "Robot.h"
#include "commands/CheckForHotGoal.h"
#include "commands/CloseClaw.h"
#include "commands/DriveForward.h"
#include "commands/SetPivotSetpoint.h"
#include "commands/Shoot.h"
#include "commands/WaitForPressure.h"
DriveAndShootAutonomous::DriveAndShootAutonomous() {
AddSequential(new CloseClaw());

View File

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

View File

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

View File

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

View File

@@ -5,12 +5,12 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/LowGoal.h"
#include "commands/LowGoal.h"
#include "Commands/ExtendShooter.h"
#include "Commands/SetCollectionSpeed.h"
#include "Commands/SetPivotSetpoint.h"
#include "Robot.h"
#include "commands/ExtendShooter.h"
#include "commands/SetCollectionSpeed.h"
#include "commands/SetPivotSetpoint.h"
LowGoal::LowGoal() {
AddSequential(new SetPivotSetpoint(Pivot::kLowGoal));

View File

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

View File

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

View File

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

View File

@@ -5,13 +5,13 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Commands/Shoot.h"
#include "commands/Shoot.h"
#include "Commands/ExtendShooter.h"
#include "Commands/OpenClaw.h"
#include "Commands/SetCollectionSpeed.h"
#include "Commands/WaitForPressure.h"
#include "Robot.h"
#include "commands/ExtendShooter.h"
#include "commands/OpenClaw.h"
#include "commands/SetCollectionSpeed.h"
#include "commands/WaitForPressure.h"
Shoot::Shoot() {
AddSequential(new WaitForPressure());

View File

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

View File

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

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Collector.h"
#include "subsystems/Collector.h"
#include <LiveWindow/LiveWindow.h>
#include <frc/livewindow/LiveWindow.h>
Collector::Collector() : frc::Subsystem("Collector") {
// Put everything to the LiveWindow for testing.

View File

@@ -5,13 +5,13 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/DriveTrain.h"
#include "subsystems/DriveTrain.h"
#include <cmath>
#include <Joystick.h>
#include <frc/Joystick.h>
#include "Commands/DriveWithJoystick.h"
#include "commands/DriveWithJoystick.h"
DriveTrain::DriveTrain() : frc::Subsystem("DriveTrain") {
// AddChild("Front Left CIM", m_frontLeftCIM);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Pivot.h"
#include "subsystems/Pivot.h"
Pivot::Pivot() : frc::PIDSubsystem("Pivot", 7.0, 0.0, 8.0) {
SetAbsoluteTolerance(0.005);

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Pneumatics.h"
#include "subsystems/Pneumatics.h"
#include <SmartDashboard/SmartDashboard.h>
#include <frc/smartdashboard/SmartDashboard.h>
Pneumatics::Pneumatics() : frc::Subsystem("Pneumatics") {
AddChild("Pressure Sensor", m_pressureSensor);

View File

@@ -5,7 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Subsystems/Shooter.h"
#include "subsystems/Shooter.h"
Shooter::Shooter() : Subsystem("Shooter") {
// Put everything to the LiveWindow for testing.

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "Triggers/DoubleButton.h"
#include "triggers/DoubleButton.h"
#include <Joystick.h>
#include <frc/Joystick.h>
DoubleButton::DoubleButton(frc::Joystick* joy, int button1, int button2)
: m_joy(*joy) {

View File

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

View File

@@ -7,18 +7,18 @@
#pragma once
#include <Commands/Command.h>
#include <IterativeRobot.h>
#include <SmartDashboard/SendableChooser.h>
#include <frc/IterativeRobot.h>
#include <frc/commands/Command.h>
#include <frc/smartdashboard/SendableChooser.h>
#include "Commands/DriveAndShootAutonomous.h"
#include "Commands/DriveForward.h"
#include "OI.h"
#include "Subsystems/Collector.h"
#include "Subsystems/DriveTrain.h"
#include "Subsystems/Pivot.h"
#include "Subsystems/Pneumatics.h"
#include "Subsystems/Shooter.h"
#include "commands/DriveAndShootAutonomous.h"
#include "commands/DriveForward.h"
#include "subsystems/Collector.h"
#include "subsystems/DriveTrain.h"
#include "subsystems/Pivot.h"
#include "subsystems/Pneumatics.h"
#include "subsystems/Shooter.h"
class Robot : public frc::IterativeRobot {
public:

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* This command looks for the hot goal and waits until it's detected or timed

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/InstantCommand.h>
#include <frc/commands/InstantCommand.h>
/**
* Close the claw.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Get the robot set to collect balls.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Drive over the line and then shoot the ball. If the hot goal is not detected,

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* This command drives the robot over a given distance with simple proportional

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* This command allows PS3 joystick to drive the robot. It is always running

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/TimedCommand.h>
#include <frc/commands/TimedCommand.h>
/**
* Extend the shooter and then retract it after a second.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Spit the ball out into the low goal assuming that the robot is in front of

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Opens the claw

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/InstantCommand.h>
#include <frc/commands/InstantCommand.h>
/**
* This command sets the collector rollers spinning at the given speed. Since

View File

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

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/CommandGroup.h>
#include <frc/commands/CommandGroup.h>
/**
* Shoot the ball at the current angle.

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Wait until the collector senses that it has the ball. This command does

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Commands/Command.h>
#include <frc/commands/Command.h>
/**
* Wait until the pneumatics are fully pressurized. This command does nothing

View File

@@ -7,10 +7,10 @@
#pragma once
#include <Commands/Subsystem.h>
#include <DigitalInput.h>
#include <Solenoid.h>
#include <Spark.h>
#include <frc/DigitalInput.h>
#include <frc/Solenoid.h>
#include <frc/Spark.h>
#include <frc/commands/Subsystem.h>
/**
* The Collector subsystem has one motor for the rollers, a limit switch for

View File

@@ -7,12 +7,12 @@
#pragma once
#include <AnalogGyro.h>
#include <Commands/Subsystem.h>
#include <Drive/DifferentialDrive.h>
#include <Encoder.h>
#include <Spark.h>
#include <SpeedControllerGroup.h>
#include <frc/AnalogGyro.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,10 +7,10 @@
#pragma once
#include <AnalogPotentiometer.h>
#include <Commands/PIDSubsystem.h>
#include <DigitalInput.h>
#include <Spark.h>
#include <frc/AnalogPotentiometer.h>
#include <frc/DigitalInput.h>
#include <frc/Spark.h>
#include <frc/commands/PIDSubsystem.h>
/**
* The Pivot subsystem contains the Van-door motor and the pot for PID control

View File

@@ -7,9 +7,9 @@
#pragma once
#include <AnalogInput.h>
#include <Commands/Subsystem.h>
#include <Compressor.h>
#include <frc/AnalogInput.h>
#include <frc/Compressor.h>
#include <frc/commands/Subsystem.h>
/**
* The Pneumatics subsystem contains the compressor and a pressure sensor.

View File

@@ -7,10 +7,10 @@
#pragma once
#include <Commands/Subsystem.h>
#include <DigitalInput.h>
#include <DoubleSolenoid.h>
#include <Solenoid.h>
#include <frc/DigitalInput.h>
#include <frc/DoubleSolenoid.h>
#include <frc/Solenoid.h>
#include <frc/commands/Subsystem.h>
/**
* The Shooter subsystem handles shooting. The mechanism for shooting is

View File

@@ -7,7 +7,7 @@
#pragma once
#include <Buttons/Trigger.h>
#include <frc/buttons/Trigger.h>
namespace frc {
class Joystick;

View File

@@ -7,11 +7,11 @@
#include <array>
#include <AnalogInput.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <PIDController.h>
#include <Spark.h>
#include <frc/AnalogInput.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/PIDController.h>
#include <frc/Spark.h>
/**
* This is a sample program to demonstrate how to use a soft potentiometer and a

View File

@@ -5,8 +5,8 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <CameraServer.h>
#include <IterativeRobot.h>
#include <cameraserver/CameraServer.h>
#include <frc/IterativeRobot.h>
#include <wpi/raw_ostream.h>
/**

View File

@@ -5,9 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Relay.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Relay.h>
/**
* This is a sample program which uses joystick buttons to control a relay.

View File

@@ -5,10 +5,10 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include <DoubleSolenoid.h>
#include <IterativeRobot.h>
#include <Joystick.h>
#include <Solenoid.h>
#include <frc/DoubleSolenoid.h>
#include <frc/IterativeRobot.h>
#include <frc/Joystick.h>
#include <frc/Solenoid.h>
/**
* This is a sample program showing the use of the solenoid classes during

Some files were not shown because too many files have changed in this diff Show More