[cscore, wpilibcExamples] Use double-quote includes for wpi/ (#8346)

Use ERR and WARN in cscore to avoid conflict with Windows headers.
This commit is contained in:
Peter Johnson
2025-11-08 16:58:51 -08:00
committed by GitHub
parent fc4e922206
commit 5c9c45fadb
226 changed files with 868 additions and 951 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,10 +4,9 @@
#include "RobotContainer.hpp"
#include <wpi/commands2/button/Trigger.hpp>
#include "commands/Autos.hpp"
#include "commands/ExampleCommand.hpp"
#include "wpi/commands2/button/Trigger.hpp"
RobotContainer::RobotContainer() {
// Initialize all of your commands and subsystems here

View File

@@ -4,9 +4,8 @@
#include "commands/Autos.hpp"
#include <wpi/commands2/Commands.hpp>
#include "commands/ExampleCommand.hpp"
#include "wpi/commands2/Commands.hpp"
wpi::cmd::CommandPtr autos::ExampleAuto(ExampleSubsystem* subsystem) {
return wpi::cmd::cmd::Sequence(subsystem->ExampleMethodCommand(),

View File

@@ -6,10 +6,9 @@
#include <optional>
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include "RobotContainer.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/framework/TimedRobot.hpp"
class Robot : public wpi::TimedRobot {
public:

View File

@@ -4,11 +4,10 @@
#pragma once
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/button/CommandXboxController.hpp>
#include "Constants.hpp"
#include "subsystems/ExampleSubsystem.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/button/CommandXboxController.hpp"
/**
* This class is where the bulk of the robot should be declared. Since

View File

@@ -4,9 +4,8 @@
#pragma once
#include <wpi/commands2/CommandPtr.hpp>
#include "subsystems/ExampleSubsystem.hpp"
#include "wpi/commands2/CommandPtr.hpp"
namespace autos {
/**

View File

@@ -4,10 +4,9 @@
#pragma once
#include <wpi/commands2/Command.hpp>
#include <wpi/commands2/CommandHelper.hpp>
#include "subsystems/ExampleSubsystem.hpp"
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/CommandHelper.hpp"
/**
* An example command that uses an example subsystem.

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 wpi::cmd::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,10 +6,9 @@
#include <optional>
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/framework/TimedRobot.hpp>
#include "RobotContainer.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/framework/TimedRobot.hpp"
class Robot : public wpi::TimedRobot {
public:

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/hal/DriverStation.h>
#include <wpi/internal/DriverStationModeThread.hpp>
#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/framework/RobotBase.hpp>
#include "wpi/framework/RobotBase.hpp"
class Robot : public wpi::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/framework/TimedRobot.hpp>
#include <wpi/smartdashboard/SendableChooser.hpp>
#include "wpi/framework/TimedRobot.hpp"
#include "wpi/smartdashboard/SendableChooser.hpp"
class Robot : public wpi::TimedRobot {
public:

View File

@@ -4,7 +4,7 @@
#pragma once
#include <wpi/framework/TimedRobot.hpp>
#include "wpi/framework/TimedRobot.hpp"
class Robot : public wpi::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() : wpi::TimesliceRobot{5_ms, 10_ms} {

View File

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

View File

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