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,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 "Robot.h"
#include "Robot.hpp"
#include <frc2/command/CommandScheduler.h>
#include "wpi/commands2/CommandScheduler.hpp"
Robot::Robot() {}

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 "RobotContainer.h"
#include "RobotContainer.hpp"
#include <frc2/command/button/Trigger.h>
#include "wpi/commands2/button/Trigger.hpp"
#include "commands/Autos.h"
#include "commands/ExampleCommand.h"
#include "commands/Autos.hpp"
#include "commands/ExampleCommand.hpp"
RobotContainer::RobotContainer() {
// Initialize all of your commands and subsystems here

View File

@@ -2,11 +2,11 @@
// 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 "commands/Autos.h"
#include "commands/Autos.hpp"
#include <frc2/command/Commands.h>
#include "wpi/commands2/Commands.hpp"
#include "commands/ExampleCommand.h"
#include "commands/ExampleCommand.hpp"
frc2::CommandPtr autos::ExampleAuto(ExampleSubsystem* subsystem) {
return frc2::cmd::Sequence(subsystem->ExampleMethodCommand(),

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 "commands/ExampleCommand.h"
#include "commands/ExampleCommand.hpp"
ExampleCommand::ExampleCommand(ExampleSubsystem* subsystem)
: m_subsystem{subsystem} {

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/ExampleSubsystem.h"
#include "subsystems/ExampleSubsystem.hpp"
ExampleSubsystem::ExampleSubsystem() {
// Implementation of subsystem constructor goes here.

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 "RobotContainer.h"
#include "RobotContainer.hpp"
class Robot : public frc::TimedRobot {
public:

View File

@@ -4,11 +4,11 @@
#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/ExampleSubsystem.h"
#include "Constants.hpp"
#include "subsystems/ExampleSubsystem.hpp"
/**
* This class is where the bulk of the robot should be declared. Since

View File

@@ -4,9 +4,9 @@
#pragma once
#include <frc2/command/CommandPtr.h>
#include "wpi/commands2/CommandPtr.hpp"
#include "subsystems/ExampleSubsystem.h"
#include "subsystems/ExampleSubsystem.hpp"
namespace autos {
/**

View File

@@ -4,10 +4,10 @@
#pragma once
#include <frc2/command/Command.h>
#include <frc2/command/CommandHelper.h>
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/CommandHelper.hpp"
#include "subsystems/ExampleSubsystem.h"
#include "subsystems/ExampleSubsystem.hpp"
/**
* An example command that uses an example subsystem.

View File

@@ -4,8 +4,8 @@
#pragma once
#include <frc2/command/CommandPtr.h>
#include <frc2/command/SubsystemBase.h>
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
class ExampleSubsystem : public frc2::SubsystemBase {
public:

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 "Robot.h"
#include "Robot.hpp"
#include <frc2/command/CommandScheduler.h>
#include "wpi/commands2/CommandScheduler.hpp"
Robot::Robot() {}

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 "RobotContainer.h"
#include "RobotContainer.hpp"
#include <frc2/command/Commands.h>
#include "wpi/commands2/Commands.hpp"
RobotContainer::RobotContainer() {
ConfigureBindings();

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 "RobotContainer.h"
#include "RobotContainer.hpp"
class Robot : public frc::TimedRobot {
public:

View File

@@ -4,7 +4,7 @@
#pragma once
#include <frc2/command/CommandPtr.h>
#include "wpi/commands2/CommandPtr.hpp"
class RobotContainer {
public:

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 "Robot.h"
#include "Robot.hpp"
#include <frc/DriverStation.h>
#include <frc/internal/DriverStationModeThread.h>
#include <hal/DriverStation.h>
#include <networktables/NetworkTable.h>
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/internal/DriverStationModeThread.hpp"
#include "wpi/hal/DriverStation.h"
#include "wpi/nt/NetworkTable.hpp"
Robot::Robot() {}

View File

@@ -6,7 +6,7 @@
#include <atomic>
#include <frc/RobotBase.h>
#include "wpi/opmode/RobotBase.hpp"
class Robot : public frc::RobotBase {
public:

View File

@@ -2,10 +2,10 @@
// 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"
#include <frc/smartdashboard/SmartDashboard.h>
#include <wpi/print.h>
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/util/print.hpp"
Robot::Robot() {
m_chooser.SetDefaultOption(kAutoNameDefault, kAutoNameDefault);

View File

@@ -6,8 +6,8 @@
#include <string>
#include <frc/TimedRobot.h>
#include <frc/smartdashboard/SendableChooser.h>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/smartdashboard/SendableChooser.hpp"
class Robot : public frc::TimedRobot {
public:

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() {}
void Robot::RobotPeriodic() {}

View File

@@ -4,7 +4,7 @@
#pragma once
#include <frc/TimedRobot.h>
#include "wpi/opmode/TimedRobot.hpp"
class Robot : public frc::TimedRobot {
public:

View File

@@ -2,10 +2,10 @@
// 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"
#include <frc/smartdashboard/SmartDashboard.h>
#include <wpi/print.h>
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/util/print.hpp"
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {

View File

@@ -6,8 +6,8 @@
#include <string>
#include <frc/TimesliceRobot.h>
#include <frc/smartdashboard/SendableChooser.h>
#include "wpi/opmode/TimesliceRobot.hpp"
#include "wpi/smartdashboard/SendableChooser.hpp"
class Robot : public frc::TimesliceRobot {
public:

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"
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {

View File

@@ -4,7 +4,7 @@
#pragma once
#include <frc/TimesliceRobot.h>
#include "wpi/opmode/TimesliceRobot.hpp"
class Robot : public frc::TimesliceRobot {
public: