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,7 +4,7 @@
|
||||
|
||||
#include "Robot.hpp"
|
||||
|
||||
#include <wpi/commands2/CommandScheduler.hpp>
|
||||
#include "wpi/commands2/CommandScheduler.hpp"
|
||||
|
||||
Robot::Robot() {}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/commands2/CommandPtr.hpp>
|
||||
|
||||
#include "subsystems/ExampleSubsystem.hpp"
|
||||
#include "wpi/commands2/CommandPtr.hpp"
|
||||
|
||||
namespace autos {
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,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:
|
||||
|
||||
@@ -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/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() {}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include <wpi/framework/RobotBase.hpp>
|
||||
#include "wpi/framework/RobotBase.hpp"
|
||||
|
||||
class Robot : public wpi::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/framework/TimedRobot.hpp>
|
||||
#include <wpi/smartdashboard/SendableChooser.hpp>
|
||||
#include "wpi/framework/TimedRobot.hpp"
|
||||
#include "wpi/smartdashboard/SendableChooser.hpp"
|
||||
|
||||
class Robot : public wpi::TimedRobot {
|
||||
public:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/framework/TimedRobot.hpp>
|
||||
#include "wpi/framework/TimedRobot.hpp"
|
||||
|
||||
class Robot : public wpi::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() : wpi::TimesliceRobot{5_ms, 10_ms} {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/framework/TimesliceRobot.hpp>
|
||||
#include "wpi/framework/TimesliceRobot.hpp"
|
||||
|
||||
class Robot : public wpi::TimesliceRobot {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user