mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -7,13 +7,12 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
Command::Command() {
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/ConditionalCommand.hpp"
|
||||
#include "wpi/commands2/InstantCommand.hpp"
|
||||
@@ -22,6 +20,7 @@
|
||||
#include "wpi/commands2/WaitCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/commands2/WrapperCommand.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -10,21 +10,20 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/opmode/RobotState.hpp"
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/UsageReporting.h"
|
||||
#include "wpi/nt/IntegerArrayTopic.hpp"
|
||||
#include "wpi/nt/StringArrayTopic.hpp"
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include "wpi/opmode/RobotState.hpp"
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/util/DenseMap.hpp"
|
||||
#include "wpi/util/SmallVector.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
class CommandScheduler::Impl {
|
||||
|
||||
@@ -7,9 +7,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
#include "wpi/commands2/ConditionalCommand.hpp"
|
||||
#include "wpi/commands2/DeferredCommand.hpp"
|
||||
#include "wpi/commands2/FunctionalCommand.hpp"
|
||||
@@ -23,6 +20,8 @@
|
||||
#include "wpi/commands2/SequentialCommandGroup.hpp"
|
||||
#include "wpi/commands2/WaitCommand.hpp"
|
||||
#include "wpi/commands2/WaitUntilCommand.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
|
||||
#include "wpi/commands2/ProxyCommand.hpp"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
|
||||
@@ -7,10 +7,9 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/Demangle.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include "wpi/util/Demangle.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
Subsystem::~Subsystem() {
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
#include "wpi/util/sendable/SendableRegistry.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "wpi/commands2/WaitCommand.hpp"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/math/filter/Debouncer.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/math/filter/Debouncer.hpp"
|
||||
|
||||
using namespace frc;
|
||||
using namespace frc2;
|
||||
|
||||
@@ -9,15 +9,14 @@
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
#include "wpi/util/Demangle.hpp"
|
||||
#include "wpi/util/SmallSet.hpp"
|
||||
#include "wpi/util/StackTrace.hpp"
|
||||
#include "wpi/util/sendable/Sendable.hpp"
|
||||
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
#include <span>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/event/EventLoop.hpp"
|
||||
#include "wpi/system/Errors.hpp"
|
||||
#include "wpi/system/Watchdog.hpp"
|
||||
#include "wpi/event/EventLoop.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
#include "wpi/util/sendable/Sendable.hpp"
|
||||
|
||||
@@ -12,11 +12,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/commands2/SelectCommand.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
class Subsystem;
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "wpi/system/Notifier.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/Requirements.hpp"
|
||||
#include "wpi/system/Notifier.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -14,9 +14,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -14,9 +14,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -14,9 +14,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
|
||||
#include <span>
|
||||
|
||||
#include "wpi/util/SmallSet.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/SmallSet.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -17,10 +17,9 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/PrintCommand.hpp"
|
||||
#include "wpi/util/sendable/SendableBuilder.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -15,9 +15,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/util/DecayedDerivedFrom.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
class Command;
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/util/sendable/Sendable.hpp"
|
||||
#include "wpi/util/sendable/SendableHelper.hpp"
|
||||
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
* A base for subsystems that handles registration in the constructor, and
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#pragma once
|
||||
#include "wpi/driverstation/Gamepad.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/button/CommandGenericHID.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/Gamepad.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/driverstation/GenericHID.hpp"
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#pragma once
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/commands2/button/CommandGenericHID.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#pragma once
|
||||
#include "wpi/driverstation/GenericHID.hpp"
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/GenericHID.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <memory>
|
||||
#include <string_view>
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/nt/BooleanTopic.hpp"
|
||||
#include "wpi/nt/NetworkTable.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
* A Button that uses a NetworkTable boolean field.
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/driverstation/GenericHID.hpp"
|
||||
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
/**
|
||||
* A class used to bind command scheduling to joystick POV presses. Can be
|
||||
|
||||
@@ -7,15 +7,14 @@
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
#include "wpi/event/EventLoop.hpp"
|
||||
#include "wpi/math/filter/Debouncer.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
#include "wpi/util/FunctionExtras.hpp"
|
||||
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
namespace frc2 {
|
||||
class Command;
|
||||
/**
|
||||
|
||||
@@ -9,11 +9,10 @@
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/sysid/SysIdRoutineLog.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/Subsystem.hpp"
|
||||
#include "wpi/sysid/SysIdRoutineLog.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
|
||||
namespace frc2::sysid {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user