mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user