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,9 +4,9 @@
|
||||
|
||||
#include "subsystems/Elevator.hpp"
|
||||
|
||||
#include <wpi/math/util/StateSpaceUtil.hpp>
|
||||
#include <wpi/smartdashboard/SmartDashboard.hpp>
|
||||
#include <wpi/system/RobotController.hpp>
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
|
||||
Elevator::Elevator() {
|
||||
m_encoder.SetDistancePerPulse(Constants::kArmEncoderDistPerPulse);
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
#include <numbers>
|
||||
|
||||
#include <wpi/units/acceleration.hpp>
|
||||
#include <wpi/units/angle.hpp>
|
||||
#include <wpi/units/length.hpp>
|
||||
#include <wpi/units/mass.hpp>
|
||||
#include <wpi/units/time.hpp>
|
||||
#include <wpi/units/velocity.hpp>
|
||||
#include <wpi/units/voltage.hpp>
|
||||
#include "wpi/units/acceleration.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/units/mass.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
#include "wpi/units/velocity.hpp"
|
||||
#include "wpi/units/voltage.hpp"
|
||||
|
||||
/**
|
||||
* The Constants header provides a convenient place for teams to hold robot-wide
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/driverstation/Joystick.hpp>
|
||||
#include <wpi/framework/TimedRobot.hpp>
|
||||
|
||||
#include "subsystems/Elevator.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/framework/TimedRobot.hpp"
|
||||
|
||||
/**
|
||||
* This is a sample program to demonstrate the use of elevator simulation.
|
||||
|
||||
@@ -4,22 +4,21 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/hardware/motor/PWMSparkMax.hpp>
|
||||
#include <wpi/hardware/rotation/Encoder.hpp>
|
||||
#include <wpi/math/controller/ElevatorFeedforward.hpp>
|
||||
#include <wpi/math/controller/PIDController.hpp>
|
||||
#include <wpi/math/trajectory/ExponentialProfile.hpp>
|
||||
#include <wpi/simulation/BatterySim.hpp>
|
||||
#include <wpi/simulation/ElevatorSim.hpp>
|
||||
#include <wpi/simulation/EncoderSim.hpp>
|
||||
#include <wpi/simulation/PWMMotorControllerSim.hpp>
|
||||
#include <wpi/simulation/RoboRioSim.hpp>
|
||||
#include <wpi/smartdashboard/Mechanism2d.hpp>
|
||||
#include <wpi/smartdashboard/MechanismLigament2d.hpp>
|
||||
#include <wpi/smartdashboard/MechanismRoot2d.hpp>
|
||||
#include <wpi/units/length.hpp>
|
||||
|
||||
#include "Constants.hpp"
|
||||
#include "wpi/hardware/motor/PWMSparkMax.hpp"
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
#include "wpi/math/controller/ElevatorFeedforward.hpp"
|
||||
#include "wpi/math/controller/PIDController.hpp"
|
||||
#include "wpi/math/trajectory/ExponentialProfile.hpp"
|
||||
#include "wpi/simulation/BatterySim.hpp"
|
||||
#include "wpi/simulation/ElevatorSim.hpp"
|
||||
#include "wpi/simulation/EncoderSim.hpp"
|
||||
#include "wpi/simulation/PWMMotorControllerSim.hpp"
|
||||
#include "wpi/simulation/RoboRioSim.hpp"
|
||||
#include "wpi/smartdashboard/Mechanism2d.hpp"
|
||||
#include "wpi/smartdashboard/MechanismLigament2d.hpp"
|
||||
#include "wpi/smartdashboard/MechanismRoot2d.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
class Elevator {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user