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,11 +5,10 @@
#pragma once
#include "wpi/hal/SimDevice.h"
#include "wpi/hardware/bus/I2C.hpp"
#include "wpi/nt/NTSendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/bus/I2C.hpp"
namespace frc {
/**

View File

@@ -6,11 +6,10 @@
#include <memory>
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
namespace frc {
/**

View File

@@ -6,7 +6,6 @@
#include "wpi/math/geometry/Quaternion.hpp"
#include "wpi/math/geometry/Rotation2d.hpp"
#include "wpi/math/geometry/Rotation3d.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"

View File

@@ -11,7 +11,6 @@
#include "wpi/hal/AddressableLEDTypes.h"
#include "wpi/hal/Types.h"
#include "wpi/units/time.hpp"
#include "wpi/util/Color.hpp"
#include "wpi/util/Color8Bit.hpp"

View File

@@ -8,12 +8,11 @@
#include <span>
#include <utility>
#include "wpi/hardware/led/AddressableLED.hpp"
#include "wpi/units/frequency.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/velocity.hpp"
#include "wpi/hardware/led/AddressableLED.hpp"
#include "wpi/util/Color.hpp"
namespace frc {

View File

@@ -7,12 +7,11 @@
#include <functional>
#include <vector>
#include "wpi/hardware/motor/MotorController.hpp"
#include "wpi/util/deprecated.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/motor/MotorController.hpp"
WPI_IGNORE_DEPRECATED
namespace frc {

View File

@@ -6,11 +6,10 @@
#include <string>
#include "wpi/system/Timer.hpp"
#include "wpi/units/time.hpp"
#include "wpi/util/mutex.hpp"
#include "wpi/system/Timer.hpp"
namespace frc {
/**

View File

@@ -13,15 +13,14 @@
#include <vector>
#include "wpi/hal/SimDevice.h"
#include "wpi/hardware/discrete/PWM.hpp"
#include "wpi/hardware/motor/MotorController.hpp"
#include "wpi/hardware/motor/MotorSafety.hpp"
#include "wpi/units/voltage.hpp"
#include "wpi/util/deprecated.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/motor/MotorSafety.hpp"
#include "wpi/hardware/discrete/PWM.hpp"
#include "wpi/hardware/motor/MotorController.hpp"
namespace frc {
WPI_IGNORE_DEPRECATED

View File

@@ -7,13 +7,12 @@
#include <memory>
#include "wpi/hal/Types.h"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/pneumatic/CompressorConfigType.hpp"
#include "wpi/hardware/pneumatic/PneumaticsBase.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
namespace frc {

View File

@@ -7,11 +7,10 @@
#include <memory>
#include "wpi/hal/Types.h"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/pneumatic/PneumaticsBase.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
namespace frc {

View File

@@ -6,13 +6,12 @@
#include <memory>
#include "PneumaticsBase.hpp"
#include "wpi/hal/Types.h"
#include "wpi/units/pressure.hpp"
#include "wpi/util/DenseMap.hpp"
#include "wpi/util/mutex.hpp"
#include "PneumaticsBase.hpp"
namespace frc {
/** Module class for controlling a REV Robotics Pneumatic Hub. */
class PneumaticHub : public PneumaticsBase {

View File

@@ -7,14 +7,13 @@
#include <memory>
#include <string_view>
#include "wpi/hardware/pneumatic/CompressorConfigType.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
#include "wpi/units/current.hpp"
#include "wpi/units/pressure.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/voltage.hpp"
#include "wpi/hardware/pneumatic/CompressorConfigType.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
namespace frc {
class Solenoid;
class DoubleSolenoid;

View File

@@ -6,12 +6,11 @@
#include <memory>
#include "PneumaticsBase.hpp"
#include "wpi/hal/Types.h"
#include "wpi/util/DenseMap.hpp"
#include "wpi/util/mutex.hpp"
#include "PneumaticsBase.hpp"
namespace frc {
/** Module class for controlling a Cross The Road Electronics Pneumatics Control
* Module. */

View File

@@ -7,13 +7,12 @@
#include <memory>
#include "wpi/hal/Types.h"
#include "wpi/hardware/pneumatic/PneumaticsBase.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
#include "wpi/units/time.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/pneumatic/PneumaticsBase.hpp"
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
namespace frc {
/**

View File

@@ -5,12 +5,11 @@
#pragma once
#include "wpi/hal/SimDevice.h"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/units/length.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
namespace frc {
class SharpIR : public wpi::Sendable, public wpi::SendableHelper<SharpIR> {

View File

@@ -6,11 +6,10 @@
#include <memory>
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
namespace frc {
/**

View File

@@ -8,11 +8,10 @@
#include "wpi/hal/Encoder.h"
#include "wpi/hal/Types.h"
#include "wpi/hardware/discrete/CounterBase.hpp"
#include "wpi/util/sendable/Sendable.hpp"
#include "wpi/util/sendable/SendableHelper.hpp"
#include "wpi/hardware/discrete/CounterBase.hpp"
namespace frc {
/**
* Class to read quad encoders.