Fixed include order (#245)

See wpilibsuite/styleguide (#11).
This commit is contained in:
Tyler Veness
2016-09-25 16:50:13 -07:00
committed by Peter Johnson
parent 107a4cc1e2
commit 5dfae8d6bd
109 changed files with 175 additions and 87 deletions

View File

@@ -7,12 +7,6 @@
#pragma once
#ifdef _WIN32
// Ensure that Winsock2.h is included before Windows.h, which can get
// pulled in by anybody (e.g., Boost).
#include <Winsock2.h>
#endif
#include <condition_variable>
#include <mutex>
#include <string>
@@ -23,6 +17,12 @@
#include "SensorBase.h"
#include "simulation/gz_msgs/msgs.h"
#ifdef _WIN32
// Ensure that Winsock2.h is included before Windows.h, which can get
// pulled in by anybody (e.g., Boost).
#include <Winsock2.h>
#endif
struct HALCommonControlData;
class AnalogInput;

View File

@@ -8,6 +8,7 @@
#pragma once
#include <memory>
#include "ErrorBase.h"
#include "GenericHID.h"

View File

@@ -10,6 +10,7 @@
#include <stdint.h>
#include <memory>
#include "ErrorBase.h"
#include "MotorSafety.h"
#include "MotorSafetyHelper.h"

View File

@@ -8,6 +8,7 @@
#pragma once
#include <memory>
#include "MotorSafety.h"
#include "MotorSafetyHelper.h"
#include "PWM.h"

View File

@@ -9,15 +9,17 @@
#define SIMULATION "gazebo"
#include <cstring>
#include <iostream>
#include "string.h"
#include "AnalogGyro.h"
#include "AnalogInput.h"
#include "AnalogPotentiometer.h"
#include "Buttons/Button.h"
#include "Buttons/InternalButton.h"
#include "Buttons/JoystickButton.h"
#include "Buttons/NetworkButton.h"
#include "Buttons/Trigger.h"
#include "Commands/Command.h"
#include "Commands/CommandGroup.h"
#include "Commands/PIDCommand.h"
@@ -29,13 +31,6 @@
#include "Commands/WaitCommand.h"
#include "Commands/WaitForChildren.h"
#include "Commands/WaitUntilCommand.h"
#include "SmartDashboard/SendableChooser.h"
#include "SmartDashboard/SmartDashboard.h"
#include "AnalogGyro.h"
#include "AnalogInput.h"
#include "AnalogPotentiometer.h"
#include "Counter.h"
#include "DigitalInput.h"
#include "DoubleSolenoid.h"
@@ -49,6 +44,8 @@
#include "RobotBase.h"
#include "RobotDrive.h"
#include "SampleRobot.h"
#include "SmartDashboard/SendableChooser.h"
#include "SmartDashboard/SmartDashboard.h"
#include "Solenoid.h"
#include "SpeedController.h"
#include "Talon.h"

View File

@@ -7,18 +7,18 @@
#pragma once
#ifdef _WIN32
// Ensure that Winsock2.h is included before Windows.h, which can get
// pulled in by anybody (e.g., Boost).
#include <Winsock2.h>
#endif
#include <string>
#include <gazebo/transport/transport.hh>
#include "SpeedController.h"
#ifdef _WIN32
// Ensure that Winsock2.h is included before Windows.h, which can get
// pulled in by anybody (e.g., Boost).
#include <Winsock2.h>
#endif
using namespace gazebo;
class SimContinuousOutput {

View File

@@ -7,17 +7,17 @@
#pragma once
#include <condition_variable>
#include <mutex>
#include "simulation/SimFloatInput.h"
#ifdef _WIN32
// Ensure that Winsock2.h is included before Windows.h, which can get
// pulled in by anybody (e.g., Boost).
#include <Winsock2.h>
#endif
#include <condition_variable>
#include <mutex>
#include "simulation/SimFloatInput.h"
namespace wpilib {
namespace internal {
extern double simTime;