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

@@ -7,13 +7,13 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/ArmFeedforward.h"
#include "frc/system/NumericalIntegration.h"
#include "units/angular_acceleration.h"
#include "units/angular_velocity.h"
#include "units/time.h"
#include "units/voltage.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/ArmFeedforward.hpp"
#include "wpi/math/system/NumericalIntegration.hpp"
#include "wpi/units/angular_acceleration.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/voltage.hpp"
namespace {

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/BangBangController.h"
#include "wpi/math/controller/BangBangController.hpp"
TEST(BangBangInputOutputTest, ShouldOutput) {
frc::BangBangController controller;

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/BangBangController.h"
#include "wpi/math/controller/BangBangController.hpp"
TEST(BangBangToleranceTest, InTolerance) {
frc::BangBangController controller{0.1};

View File

@@ -4,9 +4,9 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/ControlAffinePlantInversionFeedforward.h"
#include "units/time.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/ControlAffinePlantInversionFeedforward.hpp"
#include "wpi/units/time.hpp"
namespace frc {

View File

@@ -4,9 +4,9 @@
#include <gtest/gtest.h>
#include "frc/controller/DifferentialDriveAccelerationLimiter.h"
#include "frc/system/plant/LinearSystemId.h"
#include "units/math.h"
#include "wpi/math/controller/DifferentialDriveAccelerationLimiter.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#include "wpi/units/math.hpp"
namespace frc {

View File

@@ -7,12 +7,12 @@
#include <Eigen/Core>
#include <gtest/gtest.h>
#include "frc/controller/DifferentialDriveFeedforward.h"
#include "frc/controller/LinearPlantInversionFeedforward.h"
#include "frc/system/plant/LinearSystemId.h"
#include "units/acceleration.h"
#include "units/length.h"
#include "units/time.h"
#include "wpi/math/controller/DifferentialDriveFeedforward.hpp"
#include "wpi/math/controller/LinearPlantInversionFeedforward.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
TEST(DifferentialDriveFeedforwardTest, CalculateWithTrackwidth) {
constexpr auto kVLinear = 1_V / 1_mps;

View File

@@ -6,12 +6,12 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/ElevatorFeedforward.h"
#include "frc/controller/LinearPlantInversionFeedforward.h"
#include "units/acceleration.h"
#include "units/length.h"
#include "units/time.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/ElevatorFeedforward.hpp"
#include "wpi/math/controller/LinearPlantInversionFeedforward.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
static constexpr auto Ks = 0.5_V;
static constexpr auto Kv = 1.5_V * 1_s / 1_m;

View File

@@ -4,8 +4,8 @@
#include <gtest/gtest.h>
#include "frc/controller/ImplicitModelFollower.h"
#include "frc/system/plant/LinearSystemId.h"
#include "wpi/math/controller/ImplicitModelFollower.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
namespace frc {

View File

@@ -6,12 +6,12 @@
#include <gtest/gtest.h>
#include "frc/MathUtil.h"
#include "frc/controller/LTVDifferentialDriveController.h"
#include "frc/system/NumericalIntegration.h"
#include "frc/system/plant/LinearSystemId.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "units/math.h"
#include "wpi/math/util/MathUtil.hpp"
#include "wpi/math/controller/LTVDifferentialDriveController.hpp"
#include "wpi/math/system/NumericalIntegration.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#include "wpi/math/trajectory/TrajectoryGenerator.hpp"
#include "wpi/units/math.hpp"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

View File

@@ -4,10 +4,10 @@
#include <gtest/gtest.h>
#include "frc/MathUtil.h"
#include "frc/controller/LTVUnicycleController.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "units/math.h"
#include "wpi/math/util/MathUtil.hpp"
#include "wpi/math/controller/LTVUnicycleController.hpp"
#include "wpi/math/trajectory/TrajectoryGenerator.hpp"
#include "wpi/units/math.hpp"
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
EXPECT_LE(units::math::abs(val1 - val2), eps)

View File

@@ -6,9 +6,9 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/LinearPlantInversionFeedforward.h"
#include "units/time.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/LinearPlantInversionFeedforward.hpp"
#include "wpi/units/time.hpp"
namespace frc {

View File

@@ -6,12 +6,12 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/LinearQuadraticRegulator.h"
#include "frc/system/LinearSystem.h"
#include "frc/system/plant/DCMotor.h"
#include "frc/system/plant/LinearSystemId.h"
#include "units/time.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/LinearQuadraticRegulator.hpp"
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/math/system/plant/LinearSystemId.hpp"
#include "wpi/units/time.hpp"
namespace frc {

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/PIDController.h"
#include "wpi/math/controller/PIDController.hpp"
TEST(PIDInputOutputTest, ContinuousInput) {
frc::PIDController controller{0.0, 0.0, 0.0};

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/PIDController.h"
#include "wpi/math/controller/PIDController.hpp"
static constexpr double kSetpoint = 50.0;
static constexpr double kRange = 200;

View File

@@ -6,10 +6,10 @@
#include <gtest/gtest.h>
#include "frc/controller/ProfiledPIDController.h"
#include "units/angle.h"
#include "units/angular_acceleration.h"
#include "units/angular_velocity.h"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_acceleration.hpp"
#include "wpi/units/angular_velocity.hpp"
TEST(ProfiledPIDInputOutputTest, ContinuousInput1) {
frc::ProfiledPIDController<units::degree> controller{

View File

@@ -6,13 +6,13 @@
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/controller/LinearPlantInversionFeedforward.h"
#include "frc/controller/SimpleMotorFeedforward.h"
#include "units/acceleration.h"
#include "units/length.h"
#include "units/time.h"
#include "units/velocity.h"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/controller/LinearPlantInversionFeedforward.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/velocity.hpp"
namespace frc {

View File

@@ -3,9 +3,9 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/SmallVector.h>
#include "wpi/util/SmallVector.hpp"
#include "frc/controller/ArmFeedforward.h"
#include "wpi/math/controller/ArmFeedforward.hpp"
using namespace frc;

View File

@@ -4,8 +4,8 @@
#include <gtest/gtest.h>
#include "../../ProtoTestBase.h"
#include "frc/controller/DifferentialDriveFeedforward.h"
#include "../../ProtoTestBase.hpp"
#include "wpi/math/controller/DifferentialDriveFeedforward.hpp"
using namespace frc;

View File

@@ -3,9 +3,9 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/SmallVector.h>
#include "wpi/util/SmallVector.hpp"
#include "frc/controller/DifferentialDriveWheelVoltages.h"
#include "wpi/math/controller/DifferentialDriveWheelVoltages.hpp"
using namespace frc;

View File

@@ -3,9 +3,9 @@
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <wpi/SmallVector.h>
#include "wpi/util/SmallVector.hpp"
#include "frc/controller/ElevatorFeedforward.h"
#include "wpi/math/controller/ElevatorFeedforward.hpp"
using namespace frc;

View File

@@ -4,11 +4,11 @@
#include <gtest/gtest.h>
#include "../../ProtoTestBase.h"
#include "frc/controller/SimpleMotorFeedforward.h"
#include "frc/controller/proto/SimpleMotorFeedforwardProto.h"
#include "units/acceleration.h"
#include "units/velocity.h"
#include "../../ProtoTestBase.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/math/controller/proto/SimpleMotorFeedforwardProto.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/velocity.hpp"
using namespace frc;

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/ArmFeedforward.h"
#include "wpi/math/controller/ArmFeedforward.hpp"
using namespace frc;

View File

@@ -4,8 +4,8 @@
#include <gtest/gtest.h>
#include "../../StructTestBase.h"
#include "frc/controller/DifferentialDriveFeedforward.h"
#include "../../StructTestBase.hpp"
#include "wpi/math/controller/DifferentialDriveFeedforward.hpp"
using namespace frc;

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/DifferentialDriveWheelVoltages.h"
#include "wpi/math/controller/DifferentialDriveWheelVoltages.hpp"
using namespace frc;

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/controller/ElevatorFeedforward.h"
#include "wpi/math/controller/ElevatorFeedforward.hpp"
using namespace frc;

View File

@@ -4,11 +4,11 @@
#include <gtest/gtest.h>
#include "../../StructTestBase.h"
#include "frc/controller/SimpleMotorFeedforward.h"
#include "frc/controller/struct/SimpleMotorFeedforwardStruct.h"
#include "units/acceleration.h"
#include "units/velocity.h"
#include "../../StructTestBase.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/math/controller/struct/SimpleMotorFeedforwardStruct.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/velocity.hpp"
using namespace frc;