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