mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include <wpi/commands2/CommandScheduler.hpp>
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "commands/Autos.hpp"
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include <wpi/commands2/Commands.hpp>
|
||||
|
||||
#include "commands/ExampleCommand.hpp"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include <wpi/commands2/CommandPtr.hpp>
|
||||
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
#include <wpi/commands2/CommandScheduler.hpp>
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "RobotContainer.hpp"
|
||||
|
||||
#include "wpi/commands2/Commands.hpp"
|
||||
#include <wpi/commands2/Commands.hpp>
|
||||
|
||||
RobotContainer::RobotContainer() {
|
||||
ConfigureBindings();
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include <wpi/commands2/CommandPtr.hpp>
|
||||
|
||||
class RobotContainer {
|
||||
public:
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
#include <wpi/opmode/RobotBase.hpp>
|
||||
|
||||
class Robot : public frc::RobotBase {
|
||||
public:
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/opmode/TimedRobot.hpp"
|
||||
#include <wpi/opmode/TimedRobot.hpp>
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -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} {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/opmode/TimesliceRobot.hpp"
|
||||
#include <wpi/opmode/TimesliceRobot.hpp>
|
||||
|
||||
class Robot : public frc::TimesliceRobot {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user