mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -15,7 +15,7 @@
|
||||
* Command will *not* work!
|
||||
*/
|
||||
class ReplaceMeCommand2
|
||||
: public frc2::CommandHelper<frc2::Command, ReplaceMeCommand2> {
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::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
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// For more information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
class ReplaceMeInstantCommand2
|
||||
: public frc2::CommandHelper<frc2::InstantCommand,
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::InstantCommand,
|
||||
ReplaceMeInstantCommand2> {
|
||||
public:
|
||||
ReplaceMeInstantCommand2();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// For more information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
class ReplaceMeParallelCommandGroup
|
||||
: public frc2::CommandHelper<frc2::ParallelCommandGroup,
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::ParallelCommandGroup,
|
||||
ReplaceMeParallelCommandGroup> {
|
||||
public:
|
||||
ReplaceMeParallelCommandGroup();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
ReplaceMeParallelDeadlineGroup::ReplaceMeParallelDeadlineGroup()
|
||||
// The deadline command
|
||||
: CommandHelper{frc2::InstantCommand{[] {}}} {
|
||||
: CommandHelper{wpi::cmd::InstantCommand{[] {}}} {
|
||||
// Add your commands here, e.g.
|
||||
// AddCommands(FooCommand{}, BarCommand{});
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// For more information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
class ReplaceMeParallelDeadlineGroup
|
||||
: public frc2::CommandHelper<frc2::ParallelDeadlineGroup,
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::ParallelDeadlineGroup,
|
||||
ReplaceMeParallelDeadlineGroup> {
|
||||
public:
|
||||
ReplaceMeParallelDeadlineGroup();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// For more information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
class ReplaceMeParallelRaceGroup
|
||||
: public frc2::CommandHelper<frc2::ParallelRaceGroup,
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::ParallelRaceGroup,
|
||||
ReplaceMeParallelRaceGroup> {
|
||||
public:
|
||||
ReplaceMeParallelRaceGroup();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// For more information, see:
|
||||
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
|
||||
class ReplaceMeSequentialCommandGroup
|
||||
: public frc2::CommandHelper<frc2::SequentialCommandGroup,
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::SequentialCommandGroup,
|
||||
ReplaceMeSequentialCommandGroup> {
|
||||
public:
|
||||
ReplaceMeSequentialCommandGroup();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <wpi/commands2/SubsystemBase.hpp>
|
||||
|
||||
class ReplaceMeSubsystem2 : public frc2::SubsystemBase {
|
||||
class ReplaceMeSubsystem2 : public wpi::cmd::SubsystemBase {
|
||||
public:
|
||||
ReplaceMeSubsystem2();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user