diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h index 0d13ef33269..414785f2056 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Command.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Command.h @@ -5,9 +5,7 @@ #pragma once #include -#include #include -#include #include #include diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h b/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h index fa29f9a7e40..ec21b511922 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/CommandPtr.h @@ -6,14 +6,13 @@ #include #include -#include #include -#include #include #include #include #include "frc2/command/Command.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h index 7653188dc65..beefcd8c3e2 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/Commands.h @@ -6,15 +6,14 @@ #include #include -#include #include -#include #include #include #include #include #include "frc2/command/CommandPtr.h" +#include "frc2/command/Requirements.h" #include "frc2/command/SelectCommand.h" namespace frc2 { diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/FunctionalCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/FunctionalCommand.h index 5fa57f17137..ac117656757 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/FunctionalCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/FunctionalCommand.h @@ -5,11 +5,10 @@ #pragma once #include -#include -#include #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/InstantCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/InstantCommand.h index 1e552cc4473..3ac32ecb0a9 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/InstantCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/InstantCommand.h @@ -5,11 +5,10 @@ #pragma once #include -#include -#include #include "frc2/command/CommandHelper.h" #include "frc2/command/FunctionalCommand.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/MecanumControllerCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/MecanumControllerCommand.h index 9a88186dcda..e189ef1b95e 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/MecanumControllerCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/MecanumControllerCommand.h @@ -4,9 +4,7 @@ #include #include -#include #include -#include #include #include @@ -23,8 +21,9 @@ #include #include -#include "Command.h" -#include "CommandHelper.h" +#include "frc2/command/Command.h" +#include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" #pragma once diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/NotifierCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/NotifierCommand.h index 9bb063f56a3..d17867b1dc7 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/NotifierCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/NotifierCommand.h @@ -5,14 +5,13 @@ #pragma once #include -#include -#include #include #include #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/PIDCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/PIDCommand.h index 4d2648b298b..bede6d0d514 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/PIDCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/PIDCommand.h @@ -5,13 +5,12 @@ #pragma once #include -#include -#include #include #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ProfiledPIDCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/ProfiledPIDCommand.h index 01aa90a8ee6..9ea5db5c7e3 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ProfiledPIDCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ProfiledPIDCommand.h @@ -5,8 +5,6 @@ #pragma once #include -#include -#include #include #include @@ -14,6 +12,7 @@ #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/ProxyCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/ProxyCommand.h index d39ef054b0c..3b7eecc6741 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/ProxyCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/ProxyCommand.h @@ -5,7 +5,6 @@ #pragma once #include -#include #include diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/RamseteCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/RamseteCommand.h index 1339bb15646..56fb8ff92dd 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/RamseteCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/RamseteCommand.h @@ -5,9 +5,7 @@ #pragma once #include -#include #include -#include #include #include @@ -21,6 +19,7 @@ #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/RunCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/RunCommand.h index 021ba4009f0..49e4be55484 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/RunCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/RunCommand.h @@ -5,11 +5,10 @@ #pragma once #include -#include -#include #include "frc2/command/CommandHelper.h" #include "frc2/command/FunctionalCommand.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h b/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h index dac6cc7d45b..fdcd1bc22fc 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/SequentialCommandGroup.h @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h index 20d890a10db..2367be8866e 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/StartEndCommand.h @@ -5,11 +5,10 @@ #pragma once #include -#include -#include #include "frc2/command/CommandHelper.h" #include "frc2/command/FunctionalCommand.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/SwerveControllerCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/SwerveControllerCommand.h index 835a0894216..ae928b8b4a9 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/SwerveControllerCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/SwerveControllerCommand.h @@ -4,9 +4,7 @@ #include #include -#include #include -#include #include #include @@ -21,8 +19,9 @@ #include #include -#include "Command.h" -#include "CommandHelper.h" +#include "frc2/command/Command.h" +#include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" #pragma once diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/TrapezoidProfileCommand.h b/wpilibNewCommands/src/main/native/include/frc2/command/TrapezoidProfileCommand.h index ccbb07b6615..69cc8d8b238 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/TrapezoidProfileCommand.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/TrapezoidProfileCommand.h @@ -5,14 +5,13 @@ #pragma once #include -#include -#include #include #include #include "frc2/command/Command.h" #include "frc2/command/CommandHelper.h" +#include "frc2/command/Requirements.h" namespace frc2 { /** diff --git a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h index c4433a58135..533e0a6787b 100644 --- a/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h +++ b/wpilibNewCommands/src/main/native/include/frc2/command/button/Trigger.h @@ -6,9 +6,7 @@ #include #include -#include #include -#include #include #include diff --git a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandTestBase.h b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandTestBase.h index 8fb507072ea..0c7c1795b43 100644 --- a/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandTestBase.h +++ b/wpilibNewCommands/src/test/native/cpp/frc2/command/CommandTestBase.h @@ -13,6 +13,7 @@ #include "frc2/command/CommandHelper.h" #include "frc2/command/CommandScheduler.h" +#include "frc2/command/Requirements.h" #include "frc2/command/SubsystemBase.h" #include "gmock/gmock.h" #include "make_vector.h" @@ -50,8 +51,8 @@ class MockCommand : public CommandHelper { .WillRepeatedly(::testing::Return(true)); } - MockCommand(std::initializer_list requirements, - bool finished = false, bool runWhenDisabled = true) { + MockCommand(Requirements requirements, bool finished = false, + bool runWhenDisabled = true) { m_requirements.insert(requirements.begin(), requirements.end()); EXPECT_CALL(*this, GetRequirements()) .WillRepeatedly(::testing::Return(m_requirements));