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

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/math/util/MathUtil.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/driverstation/XboxController.hpp"
#include "wpi/math/filter/SlewRateLimiter.hpp"
#include <wpi/driverstation/XboxController.hpp>
#include <wpi/math/filter/SlewRateLimiter.hpp>
#include <wpi/math/util/MathUtil.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include "Drivetrain.hpp"

View File

@@ -6,7 +6,7 @@
#include <numbers>
#include "wpi/math/geometry/Rotation2d.hpp"
#include <wpi/math/geometry/Rotation2d.hpp>
SwerveModule::SwerveModule(const int driveMotorChannel,
const int turningMotorChannel,

View File

@@ -6,10 +6,10 @@
#include <numbers>
#include "wpi/hardware/imu/OnboardIMU.hpp"
#include "wpi/math/geometry/Translation2d.hpp"
#include "wpi/math/kinematics/SwerveDriveKinematics.hpp"
#include "wpi/math/kinematics/SwerveDriveOdometry.hpp"
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/math/geometry/Translation2d.hpp>
#include <wpi/math/kinematics/SwerveDriveKinematics.hpp>
#include <wpi/math/kinematics/SwerveDriveOdometry.hpp>
#include "SwerveModule.hpp"

View File

@@ -6,17 +6,17 @@
#include <numbers>
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/math/kinematics/SwerveModulePosition.hpp"
#include "wpi/math/kinematics/SwerveModuleState.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/velocity.hpp"
#include "wpi/units/voltage.hpp"
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/PIDController.hpp>
#include <wpi/math/controller/ProfiledPIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/math/kinematics/SwerveModulePosition.hpp>
#include <wpi/math/kinematics/SwerveModuleState.hpp>
#include <wpi/units/angular_velocity.hpp>
#include <wpi/units/time.hpp>
#include <wpi/units/velocity.hpp>
#include <wpi/units/voltage.hpp>
class SwerveModule {
public: