mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -6,12 +6,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/BooleanTopic.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/ExpansionHubMotor.hpp"
|
||||
#include "wpi/ExpansionHubServo.hpp"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/BooleanTopic.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/SystemServer.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -8,11 +8,10 @@
|
||||
|
||||
#include "wpi/hal/Counter.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
Tachometer::Tachometer(int channel, EdgeConfiguration configuration)
|
||||
|
||||
@@ -9,11 +9,10 @@
|
||||
|
||||
#include "wpi/hal/Counter.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
UpDownCounter::UpDownCounter(int channel, EdgeConfiguration configuration)
|
||||
|
||||
@@ -10,12 +10,11 @@
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/hardware/motor/MotorController.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/hardware/motor/MotorController.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
WPI_IGNORE_DEPRECATED
|
||||
|
||||
@@ -9,13 +9,12 @@
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/hardware/motor/MotorController.hpp"
|
||||
#include "wpi/math/geometry/Translation2d.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/math/geometry/Translation2d.hpp"
|
||||
#include "wpi/hardware/motor/MotorController.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
WPI_IGNORE_DEPRECATED
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -14,7 +15,8 @@
|
||||
#include <string_view>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
|
||||
#include "wpi/datalog/DataLog.hpp"
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Power.h"
|
||||
@@ -23,16 +25,14 @@
|
||||
#include "wpi/nt/NetworkTable.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/StringTopic.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/util/EventVector.hpp"
|
||||
#include "wpi/util/condition_variable.hpp"
|
||||
#include "wpi/datalog/DataLog.hpp"
|
||||
#include "wpi/util/json.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
static constexpr int availableToCount(uint64_t available) {
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include "wpi/driverstation/Gamepad.hpp"
|
||||
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
Gamepad::Gamepad(int port) : GenericHID(port) {
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -5,12 +5,11 @@
|
||||
#include "wpi/hardware/accelerometer/AnalogAccelerometer.hpp"
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
AnalogAccelerometer::AnalogAccelerometer(int channel)
|
||||
|
||||
@@ -2,15 +2,14 @@
|
||||
// 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/hal/CAN.h"
|
||||
#include "wpi/hardware/bus/CAN.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
// 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/hal/I2C.h"
|
||||
#include "wpi/hardware/bus/I2C.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "wpi/hal/I2C.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -2,13 +2,12 @@
|
||||
// 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/hal/SerialPort.h"
|
||||
#include "wpi/hardware/bus/SerialPort.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/hal/SerialPort.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -2,22 +2,21 @@
|
||||
// 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/hal/AnalogInput.h"
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/hal/AnalogInput.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
AnalogInput::AnalogInput(int channel) {
|
||||
|
||||
@@ -10,13 +10,12 @@
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DigitalInput::DigitalInput(int channel) {
|
||||
|
||||
@@ -10,13 +10,12 @@
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DigitalOutput::DigitalOutput(int channel) {
|
||||
|
||||
@@ -2,21 +2,20 @@
|
||||
// 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/hal/PWM.h"
|
||||
#include "wpi/hardware/discrete/PWM.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/PWM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
PWM::PWM(int channel, bool registerSendable) {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/hardware/imu/OnboardIMU.hpp"
|
||||
|
||||
#include "wpi/hal/IMU.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -2,19 +2,18 @@
|
||||
// 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/hal/AddressableLED.h"
|
||||
#include "wpi/hardware/led/AddressableLED.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "wpi/hal/AddressableLED.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/PWM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
LEDPattern::LEDPattern(std::function<void(frc::LEDPattern::LEDReader,
|
||||
|
||||
@@ -7,13 +7,12 @@
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SafeThread.hpp"
|
||||
#include "wpi/util/SmallPtrSet.hpp"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -4,14 +4,12 @@
|
||||
|
||||
#include "wpi/hardware/pneumatic/Compressor.hpp"
|
||||
|
||||
#include "wpi/hardware/pneumatic/PneumaticHub.hpp"
|
||||
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hardware/pneumatic/PneumaticHub.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
Compressor::Compressor(int busId, int module, PneumaticsModuleType moduleType)
|
||||
|
||||
@@ -7,13 +7,12 @@
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DoubleSolenoid::DoubleSolenoid(int busId, int module,
|
||||
|
||||
@@ -10,18 +10,18 @@
|
||||
#include <string>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/REVPH.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
#include "wpi/hardware/pneumatic/Compressor.hpp"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -7,10 +7,9 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/REVPH.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticHub.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -8,17 +8,17 @@
|
||||
#include <string>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/CTREPCM.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
#include "wpi/hardware/pneumatic/Compressor.hpp"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
Solenoid::Solenoid(int busId, int module, PneumaticsModuleType moduleType,
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
// 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/hal/PowerDistribution.h"
|
||||
#include "wpi/hardware/power/PowerDistribution.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hal/PowerDistribution.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
static_assert(static_cast<HAL_PowerDistributionType>(
|
||||
frc::PowerDistribution::ModuleType::kCTRE) ==
|
||||
HAL_PowerDistributionType::HAL_PowerDistributionType_kCTRE);
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
SharpIR SharpIR::GP2Y0A02YK0F(int channel) {
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
AnalogPotentiometer::AnalogPotentiometer(int channel, double fullRange,
|
||||
|
||||
@@ -2,21 +2,20 @@
|
||||
// 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/hal/DutyCycle.h"
|
||||
#include "wpi/hardware/rotation/DutyCycle.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/DutyCycle.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
DutyCycle::DutyCycle(int channel) : m_channel{channel} {
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/hardware/rotation/DutyCycle.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -2,20 +2,19 @@
|
||||
// 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/hal/Encoder.h"
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/Encoder.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/NullDeleter.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
Encoder::Encoder(int aChannel, int bChannel, bool reverseDirection,
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include "wpi/internal/DriverStationModeThread.hpp"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/util/Synchronization.h"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
|
||||
using namespace frc::internal;
|
||||
|
||||
DriverStationModeThread::DriverStationModeThread() {
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#include <string>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
|
||||
#include "wpi/opmode/IterativeRobotBase.hpp"
|
||||
|
||||
#include "wpi/driverstation/DSControlWord.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
#include "wpi/driverstation/DSControlWord.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Notifier.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "wpi/hal/simulation/AddressableLEDData.h"
|
||||
|
||||
#include "wpi/hardware/led/AddressableLED.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/AnalogInData.h"
|
||||
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/CTREPCMData.h"
|
||||
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
#include "wpi/simulation/DCMotorSim.hpp"
|
||||
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/DIOData.h"
|
||||
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/hardware/discrete/DigitalOutput.hpp"
|
||||
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
|
||||
#include "wpi/simulation/DifferentialDrivetrainSim.hpp"
|
||||
|
||||
#include "wpi/math/system/plant/LinearSystemId.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/math/system/NumericalIntegration.hpp"
|
||||
#include "wpi/math/system/plant/LinearSystemId.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "wpi/hal/simulation/DigitalPWMData.h"
|
||||
|
||||
#include "wpi/hardware/discrete/DigitalOutput.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/simulation/DriverStationData.h"
|
||||
#include "wpi/hal/simulation/MockHooks.h"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "wpi/hal/simulation/DutyCycleData.h"
|
||||
|
||||
#include "wpi/hardware/rotation/DutyCycle.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include "wpi/simulation/ElevatorSim.hpp"
|
||||
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/math/system/NumericalIntegration.hpp"
|
||||
#include "wpi/math/system/plant/LinearSystemId.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <stdexcept>
|
||||
|
||||
#include "wpi/hal/simulation/EncoderData.h"
|
||||
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
#include "wpi/simulation/FlywheelSim.hpp"
|
||||
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
#include "wpi/simulation/PWMMotorControllerSim.hpp"
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "wpi/simulation/SimDeviceSim.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/PWMData.h"
|
||||
|
||||
#include "wpi/hardware/discrete/PWM.hpp"
|
||||
#include "wpi/hardware/motor/PWMMotorController.hpp"
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsModuleType.hpp"
|
||||
#include "wpi/simulation/CTREPCMSim.hpp"
|
||||
#include "wpi/simulation/REVPHSim.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/PowerDistributionData.h"
|
||||
|
||||
#include "wpi/hardware/power/PowerDistribution.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/simulation/REVPHData.h"
|
||||
|
||||
#include "wpi/util/SensorUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
#include "wpi/simulation/SharpIRSim.hpp"
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "wpi/simulation/SimDeviceSim.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/hal/simulation/SimDeviceData.h"
|
||||
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "wpi/units/voltage.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/math/system/NumericalIntegration.hpp"
|
||||
#include "wpi/math/system/plant/LinearSystemId.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/units/voltage.hpp"
|
||||
#include "wpi/util/MathExtras.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc::sim;
|
||||
|
||||
@@ -12,14 +12,13 @@
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/NetworkTable.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/smartdashboard/ListenerExecutor.hpp"
|
||||
#include "wpi/smartdashboard/SendableBuilderImpl.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/StringMap.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/smartdashboard/ListenerExecutor.hpp"
|
||||
#include "wpi/smartdashboard/SendableBuilderImpl.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include "wpi/system/DataLogManager.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <ctime>
|
||||
#include <random>
|
||||
@@ -13,22 +11,23 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/chrono.h>
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/util/SafeThread.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
|
||||
#include "wpi/datalog/DataLog.hpp"
|
||||
#include "wpi/datalog/DataLogBackgroundWriter.hpp"
|
||||
#include "wpi/datalog/FileLogger.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Filesystem.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/SafeThread.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/system/Filesystem.hpp"
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/util/fs.hpp"
|
||||
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
|
||||
std::string frc::filesystem::GetLaunchDirectory() {
|
||||
return fs::current_path().string();
|
||||
|
||||
@@ -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/hal/Notifier.h"
|
||||
#include "wpi/system/Notifier.hpp"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Notifier.h"
|
||||
#include "wpi/hal/Threads.h"
|
||||
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Threads.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
WPI_IGNORE_DEPRECATED
|
||||
using namespace frc;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Power.h"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
@@ -2,9 +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/system/SystemServer.hpp"
|
||||
|
||||
#include "wpi/hal/SystemServer.h"
|
||||
#include "wpi/system/SystemServer.hpp"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -2,9 +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/system/Threads.hpp"
|
||||
|
||||
#include "wpi/hal/Threads.h"
|
||||
#include "wpi/system/Threads.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#include "wpi/system/Tracer.hpp"
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/hal/Notifier.h"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/priority_queue.hpp"
|
||||
|
||||
#include "wpi/hal/Notifier.h"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/priority_queue.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/nt/NTSendable.hpp"
|
||||
#include "wpi/nt/NTSendableBuilder.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/util/StringMap.hpp"
|
||||
#include "wpi/util/sendable/SendableHelper.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
class Alert::PublishedAlert {
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/MultiSubscriber.hpp"
|
||||
#include "wpi/nt/NetworkTable.hpp"
|
||||
|
||||
Reference in New Issue
Block a user