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

@@ -4,9 +4,9 @@
#include "RapidReactCommandBot.hpp"
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/Commands.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include <wpi/commands2/Command.hpp>
#include <wpi/commands2/Commands.hpp>
#include <wpi/commands2/button/Trigger.hpp>
#include "Constants.hpp"

View File

@@ -6,8 +6,8 @@
#include <utility>
#include "wpi/system/RobotController.hpp"
#include "wpi/commands2/Commands.hpp"
#include <wpi/commands2/Commands.hpp>
#include <wpi/system/RobotController.hpp>
Drive::Drive() {
wpi::SendableRegistry::AddChild(&m_drive, &m_leftLeader);

View File

@@ -4,7 +4,7 @@
#include "subsystems/Shooter.hpp"
#include "wpi/commands2/Commands.hpp"
#include <wpi/commands2/Commands.hpp>
Shooter::Shooter() {
m_shooterFeedback.SetTolerance(ShooterConstants::kShooterTolerance.value());

View File

@@ -6,11 +6,11 @@
#include <numbers>
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/voltage.hpp"
#include <wpi/units/angle.hpp>
#include <wpi/units/angular_velocity.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/time.hpp>
#include <wpi/units/voltage.hpp>
namespace DriveConstants {
inline constexpr int kLeftMotor1Port = 0;

View File

@@ -4,8 +4,8 @@
#pragma once
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/button/CommandXboxController.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/button/CommandXboxController.hpp>
#include "Constants.hpp"
#include "subsystems/Drive.hpp"

View File

@@ -6,8 +6,8 @@
#include <optional>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include "RapidReactCommandBot.hpp"

View File

@@ -6,16 +6,16 @@
#include <functional>
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/hardware/imu/OnboardIMU.hpp"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/drive/DifferentialDrive.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/length.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/ProfiledPIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/units/angle.hpp>
#include <wpi/units/length.hpp>
#include "Constants.hpp"

View File

@@ -6,10 +6,10 @@
#include <functional>
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/pneumatic/DoubleSolenoid.hpp>
#include "Constants.hpp"

View File

@@ -4,12 +4,12 @@
#pragma once
#include "wpi/hardware/rotation/AnalogPotentiometer.hpp"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/pressure.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/pneumatic/Compressor.hpp>
#include <wpi/hardware/pneumatic/PneumaticsControlModule.hpp>
#include <wpi/hardware/rotation/AnalogPotentiometer.hpp>
#include <wpi/units/pressure.hpp>
#include "Constants.hpp"

View File

@@ -6,14 +6,14 @@
#include <functional>
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/PIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/units/angle.hpp>
#include <wpi/units/angular_velocity.hpp>
#include "Constants.hpp"

View File

@@ -4,11 +4,11 @@
#pragma once
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/commands2/button/Trigger.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include "Constants.hpp"