SCRIPT: wpiformat

This commit is contained in:
PJ Reiniger
2025-11-07 19:57:55 -05:00
committed by Peter Johnson
parent c48b722dac
commit 1e7604f81c
1218 changed files with 2709 additions and 3267 deletions

View File

@@ -4,7 +4,7 @@
#include "Robot.hpp"
#include "wpi/commands2/CommandScheduler.hpp"
#include <wpi/commands2/CommandScheduler.hpp>
Robot::Robot() {}

View File

@@ -4,7 +4,7 @@
#include "RobotContainer.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include <wpi/commands2/button/Trigger.hpp>
#include "commands/Autos.hpp"
#include "commands/ExampleCommand.hpp"

View File

@@ -4,7 +4,7 @@
#include "commands/Autos.hpp"
#include "wpi/commands2/Commands.hpp"
#include <wpi/commands2/Commands.hpp>
#include "commands/ExampleCommand.hpp"

View File

@@ -6,8 +6,8 @@
#include <optional>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include "RobotContainer.hpp"

View File

@@ -4,8 +4,8 @@
#pragma once
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/button/CommandXboxController.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/button/CommandXboxController.hpp>
#include "Constants.hpp"
#include "subsystems/ExampleSubsystem.hpp"

View File

@@ -4,7 +4,7 @@
#pragma once
#include "wpi/commands2/CommandPtr.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include "subsystems/ExampleSubsystem.hpp"

View File

@@ -4,8 +4,8 @@
#pragma once
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/CommandHelper.hpp"
#include <wpi/commands2/Command.hpp>
#include <wpi/commands2/CommandHelper.hpp>
#include "subsystems/ExampleSubsystem.hpp"

View File

@@ -4,8 +4,8 @@
#pragma once
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
class ExampleSubsystem : public frc2::SubsystemBase {
public:

View File

@@ -4,7 +4,7 @@
#include "Robot.hpp"
#include "wpi/commands2/CommandScheduler.hpp"
#include <wpi/commands2/CommandScheduler.hpp>
Robot::Robot() {}

View File

@@ -4,7 +4,7 @@
#include "RobotContainer.hpp"
#include "wpi/commands2/Commands.hpp"
#include <wpi/commands2/Commands.hpp>
RobotContainer::RobotContainer() {
ConfigureBindings();

View File

@@ -6,8 +6,8 @@
#include <optional>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/opmode/TimedRobot.hpp>
#include "RobotContainer.hpp"

View File

@@ -4,7 +4,7 @@
#pragma once
#include "wpi/commands2/CommandPtr.hpp"
#include <wpi/commands2/CommandPtr.hpp>
class RobotContainer {
public:

View File

@@ -4,10 +4,10 @@
#include "Robot.hpp"
#include "wpi/driverstation/DriverStation.hpp"
#include "wpi/internal/DriverStationModeThread.hpp"
#include "wpi/hal/DriverStation.h"
#include "wpi/nt/NetworkTable.hpp"
#include <wpi/driverstation/DriverStation.hpp>
#include <wpi/hal/DriverStation.h>
#include <wpi/internal/DriverStationModeThread.hpp>
#include <wpi/nt/NetworkTable.hpp>
Robot::Robot() {}

View File

@@ -6,7 +6,7 @@
#include <atomic>
#include "wpi/opmode/RobotBase.hpp"
#include <wpi/opmode/RobotBase.hpp>
class Robot : public frc::RobotBase {
public:

View File

@@ -4,8 +4,8 @@
#include "Robot.hpp"
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/util/print.hpp"
#include <wpi/smartdashboard/SmartDashboard.hpp>
#include <wpi/util/print.hpp>
Robot::Robot() {
m_chooser.SetDefaultOption(kAutoNameDefault, kAutoNameDefault);

View File

@@ -6,8 +6,8 @@
#include <string>
#include "wpi/opmode/TimedRobot.hpp"
#include "wpi/smartdashboard/SendableChooser.hpp"
#include <wpi/opmode/TimedRobot.hpp>
#include <wpi/smartdashboard/SendableChooser.hpp>
class Robot : public frc::TimedRobot {
public:

View File

@@ -4,7 +4,7 @@
#pragma once
#include "wpi/opmode/TimedRobot.hpp"
#include <wpi/opmode/TimedRobot.hpp>
class Robot : public frc::TimedRobot {
public:

View File

@@ -4,8 +4,8 @@
#include "Robot.hpp"
#include "wpi/smartdashboard/SmartDashboard.hpp"
#include "wpi/util/print.hpp"
#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} {

View File

@@ -6,8 +6,8 @@
#include <string>
#include "wpi/opmode/TimesliceRobot.hpp"
#include "wpi/smartdashboard/SendableChooser.hpp"
#include <wpi/opmode/TimesliceRobot.hpp>
#include <wpi/smartdashboard/SendableChooser.hpp>
class Robot : public frc::TimesliceRobot {
public:

View File

@@ -4,7 +4,7 @@
#pragma once
#include "wpi/opmode/TimesliceRobot.hpp"
#include <wpi/opmode/TimesliceRobot.hpp>
class Robot : public frc::TimesliceRobot {
public: