mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
SCRIPT Run cc include replacements
This commit is contained in:
committed by
Peter Johnson
parent
f0a3c64121
commit
7c6efa41ae
@@ -2,9 +2,9 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <frc2/command/CommandScheduler.h>
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "RobotContainer.h"
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
#include <frc2/command/button/Trigger.h>
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
|
||||
#include "commands/Autos.h"
|
||||
#include "commands/ExampleCommand.h"
|
||||
#include "commands/Autos.hpp"
|
||||
#include "commands/ExampleCommand.hpp"
|
||||
|
||||
RobotContainer::RobotContainer() {
|
||||
// Initialize all of your commands and subsystems here
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "commands/Autos.h"
|
||||
#include "commands/Autos.hpp"
|
||||
|
||||
#include <frc2/command/Commands.h>
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
#include "commands/ExampleCommand.h"
|
||||
#include "commands/ExampleCommand.hpp"
|
||||
|
||||
frc2::CommandPtr autos::ExampleAuto(ExampleSubsystem* subsystem) {
|
||||
return frc2::cmd::Sequence(subsystem->ExampleMethodCommand(),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "commands/ExampleCommand.h"
|
||||
#include "commands/ExampleCommand.hpp"
|
||||
|
||||
ExampleCommand::ExampleCommand(ExampleSubsystem* subsystem)
|
||||
: m_subsystem{subsystem} {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "subsystems/ExampleSubsystem.h"
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
|
||||
ExampleSubsystem::ExampleSubsystem() {
|
||||
// Implementation of subsystem constructor goes here.
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <frc/TimedRobot.h>
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
|
||||
#include "RobotContainer.h"
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include <frc2/command/button/CommandXboxController.h>
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/button/CommandXboxController.hpp"
|
||||
|
||||
#include "Constants.h"
|
||||
#include "subsystems/ExampleSubsystem.h"
|
||||
#include "Constants.hpp"
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
|
||||
/**
|
||||
* This class is where the bulk of the robot should be declared. Since
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
|
||||
#include "subsystems/ExampleSubsystem.h"
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
|
||||
namespace autos {
|
||||
/**
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/Command.h>
|
||||
#include <frc2/command/CommandHelper.h>
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
|
||||
#include "subsystems/ExampleSubsystem.h"
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
|
||||
/**
|
||||
* An example command that uses an example subsystem.
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include <frc2/command/SubsystemBase.h>
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
|
||||
class ExampleSubsystem : public frc2::SubsystemBase {
|
||||
public:
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <frc2/command/CommandScheduler.h>
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "RobotContainer.h"
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
#include <frc2/command/Commands.h>
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
|
||||
RobotContainer::RobotContainer() {
|
||||
ConfigureBindings();
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <frc/TimedRobot.h>
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
|
||||
#include "RobotContainer.h"
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc2/command/CommandPtr.h>
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
|
||||
class RobotContainer {
|
||||
public:
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <frc/DriverStation.h>
|
||||
#include <frc/internal/DriverStationModeThread.h>
|
||||
#include <hal/DriverStation.h>
|
||||
#include <networktables/NetworkTable.h>
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/internal/DriverStationModeThread.hpp"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/nt/NetworkTable.hpp"
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include <frc/RobotBase.h>
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
|
||||
class Robot : public frc::RobotBase {
|
||||
public:
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <frc/smartdashboard/SmartDashboard.h>
|
||||
#include <wpi/print.h>
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
Robot::Robot() {
|
||||
m_chooser.SetDefaultOption(kAutoNameDefault, kAutoNameDefault);
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <frc/TimedRobot.h>
|
||||
#include <frc/smartdashboard/SendableChooser.h>
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include "wpi/smartdashboard/SendableChooser.hpp"
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
Robot::Robot() {}
|
||||
void Robot::RobotPeriodic() {}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/TimedRobot.h>
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <frc/smartdashboard/SmartDashboard.h>
|
||||
#include <wpi/print.h>
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
|
||||
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <frc/TimesliceRobot.h>
|
||||
#include <frc/smartdashboard/SendableChooser.h>
|
||||
#include "wpi/opmode/TimesliceRobot.hpp"
|
||||
#include "wpi/smartdashboard/SendableChooser.hpp"
|
||||
|
||||
class Robot : public frc::TimesliceRobot {
|
||||
public:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "Robot.h"
|
||||
#include "Robot.hpp"
|
||||
|
||||
// Run robot periodic() functions for 5 ms, and run controllers every 10 ms
|
||||
Robot::Robot() : frc::TimesliceRobot{5_ms, 10_ms} {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <frc/TimesliceRobot.h>
|
||||
#include "wpi/opmode/TimesliceRobot.hpp"
|
||||
|
||||
class Robot : public frc::TimesliceRobot {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user