Skip to content

Commit

Permalink
[cpp cmd] Clean up includes after Requirements added
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Oct 2, 2023
1 parent 3eb372c commit 27b5d1c
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <memory>
#include <span>
#include <string>

#include <units/time.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

#include <concepts>
#include <functional>
#include <initializer_list>
#include <memory>
#include <span>
#include <string>
#include <utility>
#include <vector>

#include "frc2/command/Command.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@

#include <concepts>
#include <functional>
#include <initializer_list>
#include <memory>
#include <span>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

#include "frc2/command/CommandPtr.h"
#include "frc2/command/Requirements.h"
#include "frc2/command/SelectCommand.h"

namespace frc2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include "frc2/command/CommandHelper.h"
#include "frc2/command/FunctionalCommand.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

#include <cmath>
#include <functional>
#include <initializer_list>
#include <memory>
#include <span>

#include <frc/Timer.h>
#include <frc/controller/HolonomicDriveController.h>
Expand All @@ -23,8 +21,9 @@
#include <units/velocity.h>
#include <units/voltage.h>

#include "Command.h"
#include "CommandHelper.h"
#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

#pragma once

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include <frc/Notifier.h>
#include <units/time.h>

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include <frc/controller/PIDController.h>

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>
#include <utility>

#include <frc/controller/ProfiledPIDController.h>
#include <units/time.h>

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once

#include <memory>
#include <span>

#include <wpi/FunctionExtras.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <memory>
#include <span>

#include <frc/Timer.h>
#include <frc/controller/PIDController.h>
Expand All @@ -21,6 +19,7 @@

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include "frc2/command/CommandHelper.h"
#include "frc2/command/FunctionalCommand.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <concepts>
#include <limits>
#include <memory>
#include <span>
#include <type_traits>
#include <utility>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include "frc2/command/CommandHelper.h"
#include "frc2/command/FunctionalCommand.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

#include <cmath>
#include <functional>
#include <initializer_list>
#include <memory>
#include <span>

#include <frc/Timer.h>
#include <frc/controller/HolonomicDriveController.h>
Expand All @@ -21,8 +19,9 @@
#include <units/time.h>
#include <units/voltage.h>

#include "Command.h"
#include "CommandHelper.h"
#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

#pragma once

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
#pragma once

#include <functional>
#include <initializer_list>
#include <span>

#include <frc/Timer.h>
#include <frc/trajectory/TrapezoidProfile.h>

#include "frc2/command/Command.h"
#include "frc2/command/CommandHelper.h"
#include "frc2/command/Requirements.h"

namespace frc2 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

#include <concepts>
#include <functional>
#include <initializer_list>
#include <memory>
#include <span>
#include <utility>

#include <frc/event/BooleanEvent.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -50,8 +51,8 @@ class MockCommand : public CommandHelper<Command, MockCommand> {
.WillRepeatedly(::testing::Return(true));
}

MockCommand(std::initializer_list<Subsystem*> 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));
Expand Down

0 comments on commit 27b5d1c

Please sign in to comment.