mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT Run cc include replacements
This commit is contained in:
committed by
Peter Johnson
parent
f0a3c64121
commit
7c6efa41ae
@@ -4,10 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/TimedRobot.h>
|
||||
#include <frc2/command/Command.h>
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
|
||||
#include "RobotContainer.h"
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -4,18 +4,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/Joystick.h>
|
||||
#include <frc/smartdashboard/SendableChooser.h>
|
||||
#include <frc/xrp/XRPOnBoardIO.h>
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include <frc2/command/button/Trigger.h>
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/smartdashboard/SendableChooser.hpp"
|
||||
#include "wpi/xrp/XRPOnBoardIO.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
|
||||
#include "Constants.h"
|
||||
#include "commands/AutonomousDistance.h"
|
||||
#include "commands/AutonomousTime.h"
|
||||
#include "subsystems/Arm.h"
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "Constants.hpp"
|
||||
#include "commands/AutonomousDistance.hpp"
|
||||
#include "commands/AutonomousTime.hpp"
|
||||
#include "subsystems/Arm.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
/**
|
||||
* This class is where the bulk of the robot should be declared. Since
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <frc2/command/SequentialCommandGroup.h>
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/SequentialCommandGroup.hpp"
|
||||
|
||||
#include "commands/DriveDistance.h"
|
||||
#include "commands/TurnDegrees.h"
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "commands/DriveDistance.hpp"
|
||||
#include "commands/TurnDegrees.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class AutonomousDistance
|
||||
: public frc2::CommandHelper<frc2::SequentialCommandGroup,
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <frc2/command/SequentialCommandGroup.h>
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/SequentialCommandGroup.hpp"
|
||||
|
||||
#include "commands/DriveTime.h"
|
||||
#include "commands/TurnTime.h"
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "commands/DriveTime.hpp"
|
||||
#include "commands/TurnTime.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class AutonomousTime
|
||||
: public frc2::CommandHelper<frc2::SequentialCommandGroup, AutonomousTime> {
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <units/length.h>
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class DriveDistance : public frc2::CommandHelper<frc2::Command, DriveDistance> {
|
||||
public:
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/Timer.h>
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <units/time.h>
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class DriveTime : public frc2::CommandHelper<frc2::Command, DriveTime> {
|
||||
public:
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class TeleopArcadeDrive
|
||||
: public frc2::CommandHelper<frc2::Command, TeleopArcadeDrive> {
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <units/angle.h>
|
||||
#include <units/length.h>
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class TurnDegrees : public frc2::CommandHelper<frc2::Command, TurnDegrees> {
|
||||
public:
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/Timer.h>
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include <units/time.h>
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "subsystems/Drivetrain.h"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
|
||||
class TurnTime : public frc2::CommandHelper<frc2::Command, TurnTime> {
|
||||
public:
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/xrp/XRPServo.h>
|
||||
#include <frc2/command/SubsystemBase.h>
|
||||
#include <units/angle.h>
|
||||
#include "wpi/xrp/XRPServo.hpp"
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
|
||||
class Arm : public frc2::SubsystemBase {
|
||||
public:
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/Encoder.h>
|
||||
#include <frc/drive/DifferentialDrive.h>
|
||||
#include <frc/xrp/XRPGyro.h>
|
||||
#include <frc/xrp/XRPMotor.h>
|
||||
#include <frc2/command/SubsystemBase.h>
|
||||
#include <units/acceleration.h>
|
||||
#include <units/angle.h>
|
||||
#include <units/length.h>
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
#include "wpi/drive/DifferentialDrive.hpp"
|
||||
#include "wpi/xrp/XRPGyro.hpp"
|
||||
#include "wpi/xrp/XRPMotor.hpp"
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
#include "wpi/units/acceleration.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
class Drivetrain : public frc2::SubsystemBase {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user