[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,11 +4,10 @@
#include "RapidReactCommandBot.hpp"
#include <wpi/commands2/Command.hpp>
#include <wpi/commands2/Commands.hpp>
#include <wpi/commands2/button/Trigger.hpp>
#include "Constants.hpp"
#include "wpi/commands2/Command.hpp"
#include "wpi/commands2/Commands.hpp"
#include "wpi/commands2/button/Trigger.hpp"
void RapidReactCommandBot::ConfigureBindings() {
// Automatically run the storage motor whenever the ball storage is not full,

View File

@@ -6,8 +6,8 @@
#include <utility>
#include <wpi/commands2/Commands.hpp>
#include <wpi/system/RobotController.hpp>
#include "wpi/commands2/Commands.hpp"
#include "wpi/system/RobotController.hpp"
Drive::Drive() {
wpi::util::SendableRegistry::AddChild(&m_drive, &m_leftLeader);

View File

@@ -4,7 +4,7 @@
#include "subsystems/Shooter.hpp"
#include <wpi/commands2/Commands.hpp>
#include "wpi/commands2/Commands.hpp"
Shooter::Shooter() {
m_shooterFeedback.SetTolerance(ShooterConstants::kShooterTolerance.value());

View File

@@ -6,11 +6,11 @@
#include <numbers>
#include <wpi/units/angle.hpp>
#include <wpi/units/angular_velocity.hpp>
#include <wpi/units/length.hpp>
#include <wpi/units/time.hpp>
#include <wpi/units/voltage.hpp>
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
#include "wpi/units/length.hpp"
#include "wpi/units/time.hpp"
#include "wpi/units/voltage.hpp"
namespace DriveConstants {
inline constexpr int kLeftMotor1Port = 0;

View File

@@ -4,15 +4,14 @@
#pragma once
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/button/CommandXboxController.hpp>
#include "Constants.hpp"
#include "subsystems/Drive.hpp"
#include "subsystems/Intake.hpp"
#include "subsystems/Pneumatics.hpp"
#include "subsystems/Shooter.hpp"
#include "subsystems/Storage.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

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

View File

@@ -6,18 +6,17 @@
#include <functional>
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/drive/DifferentialDrive.hpp>
#include <wpi/hardware/imu/OnboardIMU.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/ProfiledPIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/units/angle.hpp>
#include <wpi/units/length.hpp>
#include "Constants.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/drive/DifferentialDrive.hpp"
#include "wpi/hardware/imu/OnboardIMU.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/math/controller/ProfiledPIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/length.hpp"
class Drive : public wpi::cmd::SubsystemBase {
public:

View File

@@ -6,12 +6,11 @@
#include <functional>
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/pneumatic/DoubleSolenoid.hpp>
#include "Constants.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
class Intake : public wpi::cmd::SubsystemBase {
public:

View File

@@ -4,14 +4,13 @@
#pragma once
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/pneumatic/Compressor.hpp>
#include <wpi/hardware/pneumatic/PneumaticsControlModule.hpp>
#include <wpi/hardware/rotation/AnalogPotentiometer.hpp>
#include <wpi/units/pressure.hpp>
#include "Constants.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
#include "wpi/hardware/rotation/AnalogPotentiometer.hpp"
#include "wpi/units/pressure.hpp"
class Pneumatics : wpi::cmd::SubsystemBase {
public:

View File

@@ -6,16 +6,15 @@
#include <functional>
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include <wpi/hardware/rotation/Encoder.hpp>
#include <wpi/math/controller/PIDController.hpp>
#include <wpi/math/controller/SimpleMotorFeedforward.hpp>
#include <wpi/units/angle.hpp>
#include <wpi/units/angular_velocity.hpp>
#include "Constants.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
#include "wpi/hardware/rotation/Encoder.hpp"
#include "wpi/math/controller/PIDController.hpp"
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
#include "wpi/units/angle.hpp"
#include "wpi/units/angular_velocity.hpp"
class Shooter : public wpi::cmd::SubsystemBase {
public:

View File

@@ -4,13 +4,12 @@
#pragma once
#include <wpi/commands2/CommandPtr.hpp>
#include <wpi/commands2/SubsystemBase.hpp>
#include <wpi/commands2/button/Trigger.hpp>
#include <wpi/hardware/discrete/DigitalInput.hpp>
#include <wpi/hardware/motor/PWMSparkMax.hpp>
#include "Constants.hpp"
#include "wpi/commands2/CommandPtr.hpp"
#include "wpi/commands2/SubsystemBase.hpp"
#include "wpi/commands2/button/Trigger.hpp"
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hardware/motor/PWMSparkMax.hpp"
class Storage : wpi::cmd::SubsystemBase {
public: