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/hardware/accelerometer/ADXL345_I2C.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/hardware/bus/I2C.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/accelerometer/ADXL345_I2C.hpp>
#include <wpi/hardware/bus/I2C.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* ADXL346, 362 Accelerometer snippets for frc-docs.

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/hardware/imu/OnboardIMU.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/units/acceleration.hpp"
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SmartDashboard.hpp>
#include <wpi/units/acceleration.hpp>
/**
* Collision detection snippets for frc-docs.

View File

@@ -2,11 +2,11 @@
// 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/hardware/imu/OnboardIMU.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/math/filter/LinearFilter.hpp"
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/units/acceleration.hpp"
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/math/filter/LinearFilter.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SmartDashboard.hpp>
#include <wpi/units/acceleration.hpp>
/**
* Accelerometer filtering snippets for frc-docs.

View File

@@ -2,9 +2,9 @@
// 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/hardware/accelerometer/AnalogAccelerometer.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/accelerometer/AnalogAccelerometer.hpp>
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogAccelerometer snippets for frc-docs.

View File

@@ -2,8 +2,8 @@
// 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/hardware/rotation/AnalogEncoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/rotation/AnalogEncoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogEncoder snippets for frc-docs.

View File

@@ -2,8 +2,8 @@
// 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/hardware/discrete/AnalogInput.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogInput snippets for frc-docs.

View File

@@ -2,9 +2,9 @@
// 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/hardware/discrete/AnalogInput.hpp"
#include "wpi/hardware/rotation/AnalogPotentiometer.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/discrete/AnalogInput.hpp>
#include <wpi/hardware/rotation/AnalogPotentiometer.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* AnalogPotentiometer snippets for frc-docs.

View File

@@ -2,8 +2,8 @@
// 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/hardware/discrete/DigitalInput.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Digital Input snippets for frc-docs.

View File

@@ -2,8 +2,8 @@
// 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/hardware/rotation/DutyCycleEncoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/hardware/rotation/DutyCycleEncoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* DutyCycleEncoder snippets for frc-docs.

View File

@@ -2,9 +2,9 @@
// 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/hardware/rotation/Encoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/util/deprecated.hpp"
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/util/deprecated.hpp>
/**
* Encoder snippets for frc-docs.

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/hardware/rotation/Encoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/drive/DifferentialDrive.hpp"
#include "wpi/hardware/motor/Spark.hpp"
#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/hardware/motor/Spark.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Encoder drive to distance snippets for frc-docs.

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/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/hardware/motor/Spark.hpp"
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/Spark.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Encoder mechanism homing snippets for frc-docs.

View File

@@ -2,11 +2,11 @@
// 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/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/driverstation/Joystick.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/hardware/motor/PWMVictorSPX.hpp"
#include <wpi/driverstation/Joystick.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/PWMVictorSPX.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/opmode/TimedRobot.hpp>
/**
* Limit Switch snippets for frc-docs.

View File

@@ -2,11 +2,11 @@
// 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/hardware/imu/OnboardIMU.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/math/geometry/Rotation2d.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/angle.hpp"
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/math/geometry/Rotation2d.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/units/acceleration.hpp>
#include <wpi/units/angle.hpp>
/**
* Onboard IMU snippets for frc-docs.

View File

@@ -2,15 +2,15 @@
// 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/hardware/rotation/Encoder.hpp"
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/units/acceleration.hpp"
#include "wpi/units/length.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/ProfiledPIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/units/acceleration.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/velocity.hpp>
#include <wpi/units/voltage.hpp>
/**
* ProfiledPIDController with feedforward snippets for frc-docs.