SCRIPT Run cc include replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:56:21 -05:00
committed by Peter Johnson
parent f0a3c64121
commit 7c6efa41ae
2477 changed files with 8882 additions and 8882 deletions

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "RapidReactCommandBot.h"
#include "RapidReactCommandBot.hpp"
#include <frc2/command/Command.h>
#include <frc2/command/Commands.h>
#include <frc2/command/button/Trigger.h>
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/Commands.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include "Constants.h"
#include "Constants.hpp"
void RapidReactCommandBot::ConfigureBindings() {
// Automatically run the storage motor whenever the ball storage is not full,

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "Robot.h"
#include "Robot.hpp"
Robot::Robot() {
// Configure default commands and condition bindings on robot startup

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Drive.h"
#include "subsystems/Drive.hpp"
#include <utility>
#include <frc/RobotController.h>
#include <frc2/command/Commands.h>
#include "wpi/system/RobotController.hpp"
#include "wpi/commands2/Commands.hpp"
Drive::Drive() {
wpi::SendableRegistry::AddChild(&m_drive, &m_leftLeader);

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Intake.h"
#include "subsystems/Intake.hpp"
frc2::CommandPtr Intake::IntakeCommand() {
return RunOnce([this] { m_piston.Set(frc::DoubleSolenoid::kForward); })

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Pneumatics.h"
#include "subsystems/Pneumatics.hpp"
Pneumatics::Pneumatics() {}

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Shooter.h"
#include "subsystems/Shooter.hpp"
#include <frc2/command/Commands.h>
#include "wpi/commands2/Commands.hpp"
Shooter::Shooter() {
m_shooterFeedback.SetTolerance(ShooterConstants::kShooterTolerance.value());

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Storage.h"
#include "subsystems/Storage.hpp"
Storage::Storage() {
SetDefaultCommand(

View File

@@ -6,11 +6,11 @@
#include <numbers>
#include <units/angle.h>
#include <units/angular_velocity.h>
#include <units/length.h>
#include <units/time.h>
#include <units/voltage.h>
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/voltage.hpp"
namespace DriveConstants {
inline constexpr int kLeftMotor1Port = 0;

View File

@@ -4,15 +4,15 @@
#pragma once
#include <frc2/command/CommandPtr.h>
#include <frc2/command/button/CommandXboxController.h>
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/button/CommandXboxController.hpp"
#include "Constants.h"
#include "subsystems/Drive.h"
#include "subsystems/Intake.h"
#include "subsystems/Pneumatics.h"
#include "subsystems/Shooter.h"
#include "subsystems/Storage.h"
#include "Constants.hpp"
#include "subsystems/Drive.hpp"
#include "subsystems/Intake.hpp"
#include "subsystems/Pneumatics.hpp"
#include "subsystems/Shooter.hpp"
#include "subsystems/Storage.hpp"
/**
* This class is where the bulk of the robot should be declared. Since

View File

@@ -6,10 +6,10 @@
#include <optional>
#include <frc/TimedRobot.h>
#include <frc2/command/CommandPtr.h>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "RapidReactCommandBot.h"
#include "RapidReactCommandBot.hpp"
class Robot : public frc::TimedRobot {
public:

View File

@@ -6,18 +6,18 @@
#include <functional>
#include <frc/Encoder.h>
#include <frc/OnboardIMU.h>
#include <frc/controller/ProfiledPIDController.h>
#include <frc/controller/SimpleMotorFeedforward.h>
#include <frc/drive/DifferentialDrive.h>
#include <frc/motorcontrol/PWMSparkMax.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include <units/angle.h>
#include <units/length.h>
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/hardware/imu/OnboardIMU.hpp"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/drive/DifferentialDrive.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/length.hpp"
#include "Constants.h"
#include "Constants.hpp"
class Drive : public frc2::SubsystemBase {
public:

View File

@@ -6,12 +6,12 @@
#include <functional>
#include <frc/DoubleSolenoid.h>
#include <frc/motorcontrol/PWMSparkMax.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "Constants.h"
#include "Constants.hpp"
class Intake : public frc2::SubsystemBase {
public:

View File

@@ -4,14 +4,14 @@
#pragma once
#include <frc/AnalogPotentiometer.h>
#include <frc/Compressor.h>
#include <frc/PneumaticsControlModule.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include <units/pressure.h>
#include "wpi/hardware/rotation/AnalogPotentiometer.hpp"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/pressure.hpp"
#include "Constants.h"
#include "Constants.hpp"
class Pneumatics : frc2::SubsystemBase {
public:

View File

@@ -6,16 +6,16 @@
#include <functional>
#include <frc/Encoder.h>
#include <frc/controller/PIDController.h>
#include <frc/controller/SimpleMotorFeedforward.h>
#include <frc/motorcontrol/PWMSparkMax.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include <units/angle.h>
#include <units/angular_velocity.h>
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "Constants.h"
#include "Constants.hpp"
class Shooter : public frc2::SubsystemBase {
public:

View File

@@ -4,13 +4,13 @@
#pragma once
#include <frc/DigitalInput.h>
#include <frc/motorcontrol/PWMSparkMax.h>
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include <frc2/command/button/Trigger.h>
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include "Constants.h"
#include "Constants.hpp"
class Storage : frc2::SubsystemBase {
public: