Skip to content

Commit 679892e

Browse files
authored
[commands, documentation] Remove controller replaceme commands (#7053)
1 parent 4adfa8b commit 679892e

File tree

24 files changed

+19
-511
lines changed

24 files changed

+19
-511
lines changed

wpilibcExamples/src/main/cpp/commands/command2/ReplaceMeCommand2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
class ReplaceMeCommand2
1818
: public frc2::CommandHelper<frc2::Command, ReplaceMeCommand2> {
1919
public:
20+
/* You should consider using the more terse Command factories API instead
21+
* https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands
22+
*/
2023
ReplaceMeCommand2();
2124

2225
void Initialize() override;

wpilibcExamples/src/main/cpp/commands/commands.json

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -95,70 +95,6 @@
9595
"replacename": "ReplaceMeParallelRaceGroup",
9696
"commandversion": 2
9797
},
98-
{
99-
"name": "PIDCommand",
100-
"description": "A command that runs a PIDController.",
101-
"tags": [
102-
"pidcommand"
103-
],
104-
"foldername": "pidcommand",
105-
"headers": [
106-
"ReplaceMePIDCommand.h"
107-
],
108-
"source": [
109-
"ReplaceMePIDCommand.cpp"
110-
],
111-
"replacename": "ReplaceMePIDCommand",
112-
"commandversion": 2
113-
},
114-
{
115-
"name": "PIDSubsystem",
116-
"description": "A subsystem that runs a PIDController.",
117-
"tags": [
118-
"pidsubsystem"
119-
],
120-
"foldername": "pidsubsystem2",
121-
"headers": [
122-
"ReplaceMePIDSubsystem2.h"
123-
],
124-
"source": [
125-
"ReplaceMePIDSubsystem2.cpp"
126-
],
127-
"replacename": "ReplaceMePIDSubsystem2",
128-
"commandversion": 2
129-
},
130-
{
131-
"name": "ProfiledPIDCommand",
132-
"description": "A command that runs a ProfiledPIDController.",
133-
"tags": [
134-
"profiledpidcommand"
135-
],
136-
"foldername": "profiledpidcommand",
137-
"headers": [
138-
"ReplaceMeProfiledPIDCommand.h"
139-
],
140-
"source": [
141-
"ReplaceMeProfiledPIDCommand.cpp"
142-
],
143-
"replacename": "ReplaceMeProfiledPIDCommand",
144-
"commandversion": 2
145-
},
146-
{
147-
"name": "ProfiledPIDSubsystem",
148-
"description": "A subsystem that runs a ProfiledPIDController.",
149-
"tags": [
150-
"profiledpidsubsystem"
151-
],
152-
"foldername": "profiledpidsubsystem",
153-
"headers": [
154-
"ReplaceMeProfiledPIDSubsystem.h"
155-
],
156-
"source": [
157-
"ReplaceMeProfiledPIDSubsystem.cpp"
158-
],
159-
"replacename": "ReplaceMeProfiledPIDSubsystem",
160-
"commandversion": 2
161-
},
16298
{
16399
"name": "SequentialCommandGroup",
164100
"description": "A command group that runs commands in sequence.",
@@ -190,21 +126,5 @@
190126
],
191127
"replacename": "ReplaceMeSubsystem2",
192128
"commandversion": 2
193-
},
194-
{
195-
"name": "TrapezoidProfileSubsystem",
196-
"description": "A subsystem that executes a trapezoidal motion profile.",
197-
"tags": [
198-
"trapezoidprofilesubsystem"
199-
],
200-
"foldername": "trapezoidprofilesubsystem",
201-
"headers": [
202-
"ReplaceMeTrapezoidProfileSubsystem.h"
203-
],
204-
"source": [
205-
"ReplaceMeTrapezoidProfileSubsystem.cpp"
206-
],
207-
"replacename": "ReplaceMeTrapezoidProfileSubsystem",
208-
"commandversion": 2
209129
}
210130
]

wpilibcExamples/src/main/cpp/commands/instantcommand/ReplaceMeInstantCommand2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <frc2/command/CommandHelper.h>
88
#include <frc2/command/InstantCommand.h>
99

10+
// NOTE: Consider using this command inline, rather than writing a subclass.
11+
// For more information, see:
12+
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
1013
class ReplaceMeInstantCommand2
1114
: public frc2::CommandHelper<frc2::InstantCommand,
1215
ReplaceMeInstantCommand2> {

wpilibcExamples/src/main/cpp/commands/parallelcommandgroup/ReplaceMeParallelCommandGroup.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <frc2/command/CommandHelper.h>
88
#include <frc2/command/ParallelCommandGroup.h>
99

10+
// NOTE: Consider using this command inline, rather than writing a subclass.
11+
// For more information, see:
12+
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
1013
class ReplaceMeParallelCommandGroup
1114
: public frc2::CommandHelper<frc2::ParallelCommandGroup,
1215
ReplaceMeParallelCommandGroup> {

wpilibcExamples/src/main/cpp/commands/paralleldeadlinegroup/ReplaceMeParallelDeadlineGroup.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <frc2/command/CommandHelper.h>
88
#include <frc2/command/ParallelDeadlineGroup.h>
99

10+
// NOTE: Consider using this command inline, rather than writing a subclass.
11+
// For more information, see:
12+
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
1013
class ReplaceMeParallelDeadlineGroup
1114
: public frc2::CommandHelper<frc2::ParallelDeadlineGroup,
1215
ReplaceMeParallelDeadlineGroup> {

wpilibcExamples/src/main/cpp/commands/parallelracegroup/ReplaceMeParallelRaceGroup.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <frc2/command/CommandHelper.h>
88
#include <frc2/command/ParallelRaceGroup.h>
99

10+
// NOTE: Consider using this command inline, rather than writing a subclass.
11+
// For more information, see:
12+
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
1013
class ReplaceMeParallelRaceGroup
1114
: public frc2::CommandHelper<frc2::ParallelRaceGroup,
1215
ReplaceMeParallelRaceGroup> {

wpilibcExamples/src/main/cpp/commands/pidcommand/ReplaceMePIDCommand.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

wpilibcExamples/src/main/cpp/commands/pidcommand/ReplaceMePIDCommand.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

wpilibcExamples/src/main/cpp/commands/pidsubsystem2/ReplaceMePIDSubsystem2.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

wpilibcExamples/src/main/cpp/commands/pidsubsystem2/ReplaceMePIDSubsystem2.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)