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,10 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/framework/TimedRobot.hpp>
|
||||
|
||||
#include "RobotContainer.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/framework/TimedRobot.hpp"
|
||||
|
||||
class Robot : public wpi::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -4,18 +4,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandPtr.hpp>
|
||||
#include <wpi/commands2/button/Trigger.hpp>
|
||||
#include <wpi/driverstation/Joystick.hpp>
|
||||
#include <wpi/smartdashboard/SendableChooser.hpp>
|
||||
#include <wpi/xrp/XRPOnBoardIO.hpp>
|
||||
|
||||
#include "Constants.hpp"
|
||||
#include "commands/AutonomousDistance.hpp"
|
||||
#include "commands/AutonomousTime.hpp"
|
||||
#include "subsystems/Arm.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
#include "wpi/commands2/button/Trigger.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/smartdashboard/SendableChooser.hpp"
|
||||
#include "wpi/xrp/XRPOnBoardIO.hpp"
|
||||
|
||||
/**
|
||||
* This class is where the bulk of the robot should be declared. Since
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/commands2/SequentialCommandGroup.hpp>
|
||||
|
||||
#include "commands/DriveDistance.hpp"
|
||||
#include "commands/TurnDegrees.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/SequentialCommandGroup.hpp"
|
||||
|
||||
class AutonomousDistance
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::SequentialCommandGroup,
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/commands2/SequentialCommandGroup.hpp>
|
||||
|
||||
#include "commands/DriveTime.hpp"
|
||||
#include "commands/TurnTime.hpp"
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/commands2/SequentialCommandGroup.hpp"
|
||||
|
||||
class AutonomousTime
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::SequentialCommandGroup,
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/units/length.hpp>
|
||||
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
class DriveDistance
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::Command, DriveDistance> {
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/system/Timer.hpp>
|
||||
#include <wpi/units/time.hpp>
|
||||
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
class DriveTime : public wpi::cmd::CommandHelper<wpi::cmd::Command, DriveTime> {
|
||||
public:
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
|
||||
class TeleopArcadeDrive
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::Command, TeleopArcadeDrive> {
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/units/angle.hpp>
|
||||
#include <wpi/units/length.hpp>
|
||||
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
class TurnDegrees
|
||||
: public wpi::cmd::CommandHelper<wpi::cmd::Command, TurnDegrees> {
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/Command.hpp>
|
||||
#include <wpi/commands2/CommandHelper.hpp>
|
||||
#include <wpi/system/Timer.hpp>
|
||||
#include <wpi/units/time.hpp>
|
||||
|
||||
#include "subsystems/Drivetrain.hpp"
|
||||
#include "wpi/commands2/Command.hpp"
|
||||
#include "wpi/commands2/CommandHelper.hpp"
|
||||
#include "wpi/system/Timer.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
class TurnTime : public wpi::cmd::CommandHelper<wpi::cmd::Command, TurnTime> {
|
||||
public:
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/SubsystemBase.hpp>
|
||||
#include <wpi/units/angle.hpp>
|
||||
#include <wpi/xrp/XRPServo.hpp>
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/xrp/XRPServo.hpp"
|
||||
|
||||
class Arm : public wpi::cmd::SubsystemBase {
|
||||
public:
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/SubsystemBase.hpp>
|
||||
#include <wpi/drive/DifferentialDrive.hpp>
|
||||
#include <wpi/hardware/rotation/Encoder.hpp>
|
||||
#include <wpi/units/acceleration.hpp>
|
||||
#include <wpi/units/angle.hpp>
|
||||
#include <wpi/units/length.hpp>
|
||||
#include <wpi/xrp/XRPGyro.hpp>
|
||||
#include <wpi/xrp/XRPMotor.hpp>
|
||||
#include "wpi/commands2/SubsystemBase.hpp"
|
||||
#include "wpi/drive/DifferentialDrive.hpp"
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
#include "wpi/units/acceleration.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/xrp/XRPGyro.hpp"
|
||||
#include "wpi/xrp/XRPMotor.hpp"
|
||||
|
||||
class Drivetrain : public wpi::cmd::SubsystemBase {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user