Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[commands, documentation] Remove controller replaceme commands #7053

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
class ReplaceMeCommand2
: public frc2::CommandHelper<frc2::Command, ReplaceMeCommand2> {
public:
/* You should consider using the more terse Command factories API instead
* https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands
*/
ReplaceMeCommand2();

void Initialize() override;
Expand Down
80 changes: 0 additions & 80 deletions wpilibcExamples/src/main/cpp/commands/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,70 +95,6 @@
"replacename": "ReplaceMeParallelRaceGroup",
"commandversion": 2
},
{
"name": "PIDCommand",
"description": "A command that runs a PIDController.",
"tags": [
"pidcommand"
],
"foldername": "pidcommand",
"headers": [
"ReplaceMePIDCommand.h"
],
"source": [
"ReplaceMePIDCommand.cpp"
],
"replacename": "ReplaceMePIDCommand",
"commandversion": 2
},
{
"name": "PIDSubsystem",
"description": "A subsystem that runs a PIDController.",
"tags": [
"pidsubsystem"
],
"foldername": "pidsubsystem2",
"headers": [
"ReplaceMePIDSubsystem2.h"
],
"source": [
"ReplaceMePIDSubsystem2.cpp"
],
"replacename": "ReplaceMePIDSubsystem2",
"commandversion": 2
},
{
"name": "ProfiledPIDCommand",
"description": "A command that runs a ProfiledPIDController.",
"tags": [
"profiledpidcommand"
],
"foldername": "profiledpidcommand",
"headers": [
"ReplaceMeProfiledPIDCommand.h"
],
"source": [
"ReplaceMeProfiledPIDCommand.cpp"
],
"replacename": "ReplaceMeProfiledPIDCommand",
"commandversion": 2
},
{
"name": "ProfiledPIDSubsystem",
"description": "A subsystem that runs a ProfiledPIDController.",
"tags": [
"profiledpidsubsystem"
],
"foldername": "profiledpidsubsystem",
"headers": [
"ReplaceMeProfiledPIDSubsystem.h"
],
"source": [
"ReplaceMeProfiledPIDSubsystem.cpp"
],
"replacename": "ReplaceMeProfiledPIDSubsystem",
"commandversion": 2
},
{
"name": "SequentialCommandGroup",
"description": "A command group that runs commands in sequence.",
Expand Down Expand Up @@ -190,21 +126,5 @@
],
"replacename": "ReplaceMeSubsystem2",
"commandversion": 2
},
{
"name": "TrapezoidProfileSubsystem",
"description": "A subsystem that executes a trapezoidal motion profile.",
"tags": [
"trapezoidprofilesubsystem"
],
"foldername": "trapezoidprofilesubsystem",
"headers": [
"ReplaceMeTrapezoidProfileSubsystem.h"
],
"source": [
"ReplaceMeTrapezoidProfileSubsystem.cpp"
],
"replacename": "ReplaceMeTrapezoidProfileSubsystem",
"commandversion": 2
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <frc2/command/CommandHelper.h>
#include <frc2/command/InstantCommand.h>

// NOTE: Consider using this command inline, rather than writing a subclass.
// For more information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
class ReplaceMeInstantCommand2
: public frc2::CommandHelper<frc2::InstantCommand,
ReplaceMeInstantCommand2> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <frc2/command/CommandHelper.h>
#include <frc2/command/ParallelCommandGroup.h>

// NOTE: Consider using this command inline, rather than writing a subclass.
// For more information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
class ReplaceMeParallelCommandGroup
: public frc2::CommandHelper<frc2::ParallelCommandGroup,
ReplaceMeParallelCommandGroup> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <frc2/command/CommandHelper.h>
#include <frc2/command/ParallelDeadlineGroup.h>

// NOTE: Consider using this command inline, rather than writing a subclass.
// For more information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
class ReplaceMeParallelDeadlineGroup
: public frc2::CommandHelper<frc2::ParallelDeadlineGroup,
ReplaceMeParallelDeadlineGroup> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <frc2/command/CommandHelper.h>
#include <frc2/command/ParallelRaceGroup.h>

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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <frc2/command/CommandHelper.h>
#include <frc2/command/SequentialCommandGroup.h>

// NOTE: Consider using this command inline, rather than writing a subclass.
// For more information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
class ReplaceMeSequentialCommandGroup
: public frc2::CommandHelper<frc2::SequentialCommandGroup,
ReplaceMeSequentialCommandGroup> {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import edu.wpi.first.wpilibj2.command.Command;

/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */
public class ReplaceMeCommand extends Command {
/** Creates a new ReplaceMeCommand. */
public ReplaceMeCommand() {
Expand Down
Loading
Loading