SCRIPT: wpiformat

This commit is contained in:
PJ Reiniger
2025-11-07 19:57:55 -05:00
committed by Peter Johnson
parent c48b722dac
commit 1e7604f81c
1218 changed files with 2709 additions and 3267 deletions

View File

@@ -5,9 +5,8 @@
#pragma once
#include "wpi/hal/SimDevice.h"
#include "wpi/units/angle.hpp"
#include "wpi/math/geometry/Rotation2d.hpp"
#include "wpi/units/angle.hpp"
namespace frc {

View File

@@ -4,16 +4,15 @@
#pragma once
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_acceleration.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/moment_of_inertia.hpp"
#include "wpi/units/torque.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
namespace frc::sim {
/**
* Represents a simulated DC motor mechanism.

View File

@@ -4,11 +4,10 @@
#pragma once
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/kinematics/DifferentialDriveKinematics.hpp"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/moment_of_inertia.hpp"
#include "wpi/units/time.hpp"

View File

@@ -6,9 +6,8 @@
#include <memory>
#include "wpi/hal/DriverStationTypes.h"
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/hal/DriverStationTypes.h"
#include "wpi/simulation/CallbackStore.hpp"
namespace frc::sim {

View File

@@ -6,9 +6,8 @@
#include <memory>
#include "wpi/units/frequency.hpp"
#include "wpi/simulation/CallbackStore.hpp"
#include "wpi/units/frequency.hpp"
namespace frc {

View File

@@ -6,13 +6,12 @@
#include <array>
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/mass.hpp"
#include "wpi/units/velocity.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
namespace frc::sim {
/**
* Represents a simulated elevator mechanism.

View File

@@ -4,15 +4,14 @@
#pragma once
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/units/angular_acceleration.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/moment_of_inertia.hpp"
#include "wpi/units/torque.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
namespace frc::sim {
/**
* Represents a simulated flywheel mechanism.

View File

@@ -6,13 +6,12 @@
#include <array>
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/system/LinearSystem.hpp"
#include "wpi/math/util/StateSpaceUtil.hpp"
#include "wpi/units/current.hpp"
#include "wpi/units/time.hpp"
#include "wpi/math/linalg/EigenCore.hpp"
#include "wpi/math/util/StateSpaceUtil.hpp"
#include "wpi/math/system/LinearSystem.hpp"
namespace frc::sim {
/**
* This class helps simulate linear systems. To use this class, do the following

View File

@@ -5,9 +5,8 @@
#pragma once
#include "wpi/hal/SimDevice.h"
#include "wpi/units/length.hpp"
#include "wpi/hardware/motor/PWMMotorController.hpp"
#include "wpi/units/length.hpp"
namespace frc {

View File

@@ -7,13 +7,12 @@
#include <memory>
#include <string>
#include "wpi/simulation/CallbackStore.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/units/current.hpp"
#include "wpi/units/temperature.hpp"
#include "wpi/units/voltage.hpp"
#include "wpi/system/RobotController.hpp"
#include "wpi/simulation/CallbackStore.hpp"
namespace frc::sim {
/**

View File

@@ -8,7 +8,6 @@
#include "wpi/nt/NetworkTableInstance.hpp"
#include "wpi/nt/StringTopic.hpp"
#include "wpi/opmode/RobotBase.hpp"
namespace frc::sim {

View File

@@ -5,9 +5,8 @@
#pragma once
#include "wpi/hal/SimDevice.h"
#include "wpi/units/length.hpp"
#include "wpi/hardware/range/SharpIR.hpp"
#include "wpi/units/length.hpp"
namespace frc {

View File

@@ -6,14 +6,13 @@
#include <array>
#include "wpi/math/system/plant/DCMotor.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/mass.hpp"
#include "wpi/units/moment_of_inertia.hpp"
#include "wpi/simulation/LinearSystemSim.hpp"
#include "wpi/math/system/plant/DCMotor.hpp"
namespace frc::sim {
/**
* Represents a simulated arm mechanism.