Skip to content

Commit

Permalink
[commands, documentation] Remove controller replaceme commands
Browse files Browse the repository at this point in the history
Also add a note about using command factories
  • Loading branch information
spacey-sooty committed Oct 8, 2024
1 parent f856c05 commit 09cc499
Show file tree
Hide file tree
Showing 24 changed files with 17 additions and 511 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
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

0 comments on commit 09cc499

Please sign in to comment.