mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -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"
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user