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,15 +2,15 @@
// 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 "frc/simulation/AddressableLEDSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/AddressableLEDSim.hpp" // NOLINT(build/include_order)
#include <array>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AddressableLED.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/led/AddressableLED.hpp"
namespace frc::sim {

View File

@@ -5,12 +5,12 @@
#include <numbers>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <units/math.h>
#include "wpi/hal/HAL.h"
#include "wpi/units/math.hpp"
#include "frc/AnalogEncoder.h"
#include "frc/AnalogInput.h"
#include "frc/simulation/AnalogEncoderSim.h"
#include "wpi/hardware/rotation/AnalogEncoder.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/simulation/AnalogEncoderSim.hpp"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

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 "frc/simulation/AnalogInputSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/AnalogInputSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/AnalogInput.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
namespace frc::sim {

View File

@@ -2,14 +2,14 @@
// 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 "frc/simulation/CTREPCMSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/CTREPCMSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticsControlModule.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
namespace frc::sim {

View File

@@ -4,15 +4,15 @@
#include <gtest/gtest.h>
#include "frc/Encoder.h"
#include "frc/RobotController.h"
#include "frc/controller/PIDController.h"
#include "frc/motorcontrol/PWMVictorSPX.h"
#include "frc/simulation/BatterySim.h"
#include "frc/simulation/DCMotorSim.h"
#include "frc/simulation/EncoderSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "frc/system/plant/LinearSystemId.h"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/hardware/motor/PWMVictorSPX.hpp"
#include "wpi/simulation/BatterySim.hpp"
#include "wpi/simulation/DCMotorSim.hpp"
#include "wpi/simulation/EncoderSim.hpp"
#include "wpi/simulation/RoboRioSim.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
TEST(DCMotorSimTest, VoltageSteadyState) {
frc::DCMotor gearbox = frc::DCMotor::NEO(1);

View File

@@ -2,14 +2,14 @@
// 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 "frc/simulation/DIOSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/DIOSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalInput.h"
#include "frc/DigitalOutput.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/discrete/DigitalOutput.hpp"
namespace frc::sim {

View File

@@ -3,19 +3,19 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <units/current.h>
#include <units/math.h>
#include <units/moment_of_inertia.h>
#include "wpi/units/current.hpp"
#include "wpi/units/math.hpp"
#include "wpi/units/moment_of_inertia.hpp"
#include "frc/controller/LTVUnicycleController.h"
#include "frc/controller/LinearPlantInversionFeedforward.h"
#include "frc/kinematics/DifferentialDriveKinematics.h"
#include "frc/simulation/DifferentialDrivetrainSim.h"
#include "frc/system/NumericalIntegration.h"
#include "frc/system/plant/DCMotor.h"
#include "frc/system/plant/LinearSystemId.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "frc/trajectory/constraint/DifferentialDriveKinematicsConstraint.h"
#include "wpi/math/controller/LTVUnicycleController.hpp"
#include "wpi/math/controller/LinearPlantInversionFeedforward.hpp"
#include "wpi/math/kinematics/DifferentialDriveKinematics.hpp"
#include "wpi/simulation/DifferentialDrivetrainSim.hpp"
#include "wpi/math/system/NumericalIntegration.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#include "wpi/math/trajectory/TrajectoryGenerator.hpp"
#include "wpi/math/trajectory/constraint/DifferentialDriveKinematicsConstraint.hpp"
TEST(DifferentialDrivetrainSimTest, Convergence) {
auto motor = frc::DCMotor::NEO(2);

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 "frc/simulation/DigitalPWMSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/DigitalPWMSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalOutput.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/discrete/DigitalOutput.hpp"
namespace frc::sim {

View File

@@ -7,12 +7,12 @@
#include <gtest/gtest.h>
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DriverStation.h"
#include "frc/Joystick.h"
#include "frc/RobotState.h"
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/SimHooks.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/driverstation/Joystick.hpp"
#include "wpi/opmode/RobotState.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/SimHooks.hpp"
using namespace frc;
using namespace frc::sim;

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 "frc/simulation/DutyCycleEncoderSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/DutyCycleEncoderSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DutyCycleEncoder.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/rotation/DutyCycleEncoder.hpp"
namespace frc::sim {

View File

@@ -2,14 +2,14 @@
// 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 "frc/simulation/DutyCycleSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/DutyCycleSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DigitalInput.h"
#include "frc/DutyCycle.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/rotation/DutyCycle.hpp"
namespace frc::sim {

View File

@@ -3,18 +3,18 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <units/math.h>
#include <units/time.h>
#include "wpi/units/math.hpp"
#include "wpi/units/time.hpp"
#include "frc/Encoder.h"
#include "frc/RobotController.h"
#include "frc/controller/PIDController.h"
#include "frc/motorcontrol/PWMVictorSPX.h"
#include "frc/simulation/ElevatorSim.h"
#include "frc/simulation/EncoderSim.h"
#include "frc/system/NumericalIntegration.h"
#include "frc/system/plant/DCMotor.h"
#include "frc/system/plant/LinearSystemId.h"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/hardware/motor/PWMVictorSPX.hpp"
#include "wpi/simulation/ElevatorSim.hpp"
#include "wpi/simulation/EncoderSim.hpp"
#include "wpi/math/system/NumericalIntegration.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

View File

@@ -2,14 +2,14 @@
// 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 "frc/simulation/EncoderSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/EncoderSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <wpi/deprecated.h>
#include "wpi/hal/HAL.h"
#include "wpi/util/deprecated.hpp"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/Encoder.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/rotation/Encoder.hpp"
namespace frc::sim {

View File

@@ -2,15 +2,15 @@
// 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 "frc/simulation/PowerDistributionSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/PowerDistributionSim.hpp" // NOLINT(build/include_order)
#include <vector>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/PowerDistribution.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/power/PowerDistribution.hpp"
namespace frc::sim {

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 "frc/simulation/PWMMotorControllerSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/PWMMotorControllerSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "frc/motorcontrol/Spark.h"
#include "wpi/hardware/motor/Spark.hpp"
namespace frc::sim {
TEST(PWMMotorControllerSimTest, TestMotor) {

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 "frc/simulation/PWMSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/PWMSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/PWM.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/discrete/PWM.hpp"
namespace frc::sim {

View File

@@ -2,14 +2,14 @@
// 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 "frc/simulation/REVPHSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/REVPHSim.hpp" // NOLINT(build/include_order)
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/DoubleSolenoid.h"
#include "frc/PneumaticHub.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/pneumatic/PneumaticHub.hpp"
namespace frc::sim {

View File

@@ -2,16 +2,16 @@
// 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 "frc/simulation/RoboRioSim.h" // NOLINT(build/include_order)
#include "wpi/simulation/RoboRioSim.hpp" // NOLINT(build/include_order)
#include <string>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include <hal/HALBase.h>
#include "wpi/hal/HAL.h"
#include "wpi/hal/HALBase.h"
#include "callback_helpers/TestCallbackHelpers.h"
#include "frc/RobotController.h"
#include "callback_helpers/TestCallbackHelpers.hpp"
#include "wpi/system/RobotController.hpp"
namespace frc::sim {

View File

@@ -5,9 +5,9 @@
#include <string_view>
#include <gtest/gtest.h>
#include <hal/SimDevice.h>
#include "wpi/hal/SimDevice.h"
#include "frc/simulation/SimDeviceSim.h"
#include "wpi/simulation/SimDeviceSim.hpp"
using namespace frc::sim;

View File

@@ -5,19 +5,19 @@
#include <exception>
#include <gtest/gtest.h>
#include <hal/HAL.h>
#include "wpi/hal/HAL.h"
#include "frc/simulation/AddressableLEDSim.h"
#include "frc/simulation/AnalogInputSim.h"
#include "frc/simulation/CTREPCMSim.h"
#include "frc/simulation/DIOSim.h"
#include "frc/simulation/DigitalPWMSim.h"
#include "frc/simulation/DriverStationSim.h"
#include "frc/simulation/DutyCycleSim.h"
#include "frc/simulation/EncoderSim.h"
#include "frc/simulation/PWMSim.h"
#include "frc/simulation/PowerDistributionSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "wpi/simulation/AddressableLEDSim.hpp"
#include "wpi/simulation/AnalogInputSim.hpp"
#include "wpi/simulation/CTREPCMSim.hpp"
#include "wpi/simulation/DIOSim.hpp"
#include "wpi/simulation/DigitalPWMSim.hpp"
#include "wpi/simulation/DriverStationSim.hpp"
#include "wpi/simulation/DutyCycleSim.hpp"
#include "wpi/simulation/EncoderSim.hpp"
#include "wpi/simulation/PWMSim.hpp"
#include "wpi/simulation/PowerDistributionSim.hpp"
#include "wpi/simulation/RoboRioSim.hpp"
using namespace frc::sim;

View File

@@ -6,7 +6,7 @@
#include <gtest/gtest.h>
#include "frc/simulation/SingleJointedArmSim.h"
#include "wpi/simulation/SingleJointedArmSim.hpp"
TEST(SingleJointedArmTest, Disabled) {
frc::sim::SingleJointedArmSim sim(frc::DCMotor::Vex775Pro(2), 300, 3_kg_sq_m,

View File

@@ -3,23 +3,23 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <units/angular_acceleration.h>
#include <units/angular_velocity.h>
#include "wpi/units/angular_acceleration.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "frc/Encoder.h"
#include "frc/RobotController.h"
#include "frc/controller/PIDController.h"
#include "frc/controller/SimpleMotorFeedforward.h"
#include "frc/motorcontrol/PWMVictorSPX.h"
#include "frc/simulation/BatterySim.h"
#include "frc/simulation/DifferentialDrivetrainSim.h"
#include "frc/simulation/ElevatorSim.h"
#include "frc/simulation/EncoderSim.h"
#include "frc/simulation/FlywheelSim.h"
#include "frc/simulation/LinearSystemSim.h"
#include "frc/simulation/PWMSim.h"
#include "frc/simulation/RoboRioSim.h"
#include "frc/system/plant/LinearSystemId.h"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/hardware/motor/PWMVictorSPX.hpp"
#include "wpi/simulation/BatterySim.hpp"
#include "wpi/simulation/DifferentialDrivetrainSim.hpp"
#include "wpi/simulation/ElevatorSim.hpp"
#include "wpi/simulation/EncoderSim.hpp"
#include "wpi/simulation/FlywheelSim.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/simulation/PWMSim.hpp"
#include "wpi/simulation/RoboRioSim.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
TEST(StateSpaceSimTest, FlywheelSim) {
const frc::LinearSystem<1, 1, 1> plant =