SCRIPT namespace replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:05 -05:00
committed by Peter Johnson
parent ae6c043632
commit 9aca8e0fd6
2622 changed files with 22275 additions and 22275 deletions

View File

@@ -12,7 +12,7 @@
#include "subsystems/Drivetrain.hpp"
class AutonomousDistance
: public frc2::CommandHelper<frc2::SequentialCommandGroup,
: public wpi::cmd::CommandHelper<wpi::cmd::SequentialCommandGroup,
AutonomousDistance> {
public:
/**

View File

@@ -12,7 +12,7 @@
#include "subsystems/Drivetrain.hpp"
class AutonomousTime
: public frc2::CommandHelper<frc2::SequentialCommandGroup, AutonomousTime> {
: public wpi::cmd::CommandHelper<wpi::cmd::SequentialCommandGroup, AutonomousTime> {
public:
/**
* Creates a new Autonomous Drive based on time. This will drive out for a

View File

@@ -10,7 +10,7 @@
#include "subsystems/Drivetrain.hpp"
class DriveDistance : public frc2::CommandHelper<frc2::Command, DriveDistance> {
class DriveDistance : public wpi::cmd::CommandHelper<wpi::cmd::Command, DriveDistance> {
public:
/**
* Creates a new DriveDistance. This command will drive your your robot for a
@@ -20,7 +20,7 @@ class DriveDistance : public frc2::CommandHelper<frc2::Command, DriveDistance> {
* @param distance The distance the robot will drive
* @param drive The drivetrain subsystem on which this command will run
*/
DriveDistance(double speed, units::meter_t distance, Drivetrain* drive)
DriveDistance(double speed, wpi::units::meter_t distance, Drivetrain* drive)
: m_speed(speed), m_distance(distance), m_drive(drive) {
AddRequirements(m_drive);
}
@@ -32,6 +32,6 @@ class DriveDistance : public frc2::CommandHelper<frc2::Command, DriveDistance> {
private:
double m_speed;
units::meter_t m_distance;
wpi::units::meter_t m_distance;
Drivetrain* m_drive;
};

View File

@@ -11,7 +11,7 @@
#include "subsystems/Drivetrain.hpp"
class DriveTime : public frc2::CommandHelper<frc2::Command, DriveTime> {
class DriveTime : public wpi::cmd::CommandHelper<wpi::cmd::Command, DriveTime> {
public:
/**
* Creates a new DriveTime. This command will drive your robot for a desired
@@ -21,7 +21,7 @@ class DriveTime : public frc2::CommandHelper<frc2::Command, DriveTime> {
* @param time How much time to drive
* @param drive The drivetrain subsystem on which this command will run
*/
DriveTime(double speed, units::second_t time, Drivetrain* drive)
DriveTime(double speed, wpi::units::second_t time, Drivetrain* drive)
: m_speed(speed), m_duration(time), m_drive(drive) {
AddRequirements(m_drive);
}
@@ -33,7 +33,7 @@ class DriveTime : public frc2::CommandHelper<frc2::Command, DriveTime> {
private:
double m_speed;
units::second_t m_duration;
wpi::units::second_t m_duration;
Drivetrain* m_drive;
frc::Timer m_timer;
wpi::Timer m_timer;
};

View File

@@ -12,7 +12,7 @@
#include "subsystems/Drivetrain.hpp"
class TeleopArcadeDrive
: public frc2::CommandHelper<frc2::Command, TeleopArcadeDrive> {
: public wpi::cmd::CommandHelper<wpi::cmd::Command, TeleopArcadeDrive> {
public:
/**
* Creates a new ArcadeDrive. This command will drive your robot according to

View File

@@ -11,7 +11,7 @@
#include "subsystems/Drivetrain.hpp"
class TurnDegrees : public frc2::CommandHelper<frc2::Command, TurnDegrees> {
class TurnDegrees : public wpi::cmd::CommandHelper<wpi::cmd::Command, TurnDegrees> {
public:
/**
* Creates a new TurnDegrees. This command will turn your robot for a desired
@@ -21,7 +21,7 @@ class TurnDegrees : public frc2::CommandHelper<frc2::Command, TurnDegrees> {
* @param angle Degrees to turn. Leverages encoders to compare distance.
* @param drive The drive subsystem on which this command will run
*/
TurnDegrees(double speed, units::degree_t angle, Drivetrain* drive)
TurnDegrees(double speed, wpi::units::degree_t angle, Drivetrain* drive)
: m_speed(speed), m_angle(angle), m_drive(drive) {
AddRequirements(m_drive);
}
@@ -33,8 +33,8 @@ class TurnDegrees : public frc2::CommandHelper<frc2::Command, TurnDegrees> {
private:
double m_speed;
units::degree_t m_angle;
wpi::units::degree_t m_angle;
Drivetrain* m_drive;
units::meter_t GetAverageTurningDistance();
wpi::units::meter_t GetAverageTurningDistance();
};

View File

@@ -11,7 +11,7 @@
#include "subsystems/Drivetrain.hpp"
class TurnTime : public frc2::CommandHelper<frc2::Command, TurnTime> {
class TurnTime : public wpi::cmd::CommandHelper<wpi::cmd::Command, TurnTime> {
public:
/**
* Creates a new TurnTime.
@@ -20,7 +20,7 @@ class TurnTime : public frc2::CommandHelper<frc2::Command, TurnTime> {
* @param time How much time to turn
* @param drive The drive subsystem on which this command will run
*/
TurnTime(double speed, units::second_t time, Drivetrain* drive)
TurnTime(double speed, wpi::units::second_t time, Drivetrain* drive)
: m_speed(speed), m_duration(time), m_drive(drive) {
AddRequirements(m_drive);
}
@@ -32,7 +32,7 @@ class TurnTime : public frc2::CommandHelper<frc2::Command, TurnTime> {
private:
double m_speed;
units::second_t m_duration;
wpi::units::second_t m_duration;
Drivetrain* m_drive;
frc::Timer m_timer;
wpi::Timer m_timer;
};