mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -12,8 +12,6 @@
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/RawTopic.hpp"
|
||||
|
||||
#include "AddressableLEDSimd.h"
|
||||
#include "HALInitializer.h"
|
||||
@@ -24,6 +22,8 @@
|
||||
#include "wpi/hal/AddressableLEDTypes.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/cpp/fpga_clock.h"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/RawTopic.hpp"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#pragma once
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/hal/AddressableLEDTypes.h"
|
||||
#include "simd/simd.h"
|
||||
#include "wpi/hal/AddressableLEDTypes.h"
|
||||
|
||||
namespace hal::detail {
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <cstdio>
|
||||
#include <thread>
|
||||
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
#include "PortsInternal.h"
|
||||
@@ -16,6 +14,7 @@
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/cpp/fpga_clock.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
namespace hal::init {
|
||||
void InitializeAnalogInput() {}
|
||||
|
||||
@@ -17,12 +17,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/DenseMap.hpp"
|
||||
#include "wpi/util/circular_buffer.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "PortsInternal.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/Threads.h"
|
||||
@@ -30,6 +24,11 @@
|
||||
#include "wpi/net/EventLoopRunner.hpp"
|
||||
#include "wpi/net/uv/Poll.hpp"
|
||||
#include "wpi/net/uv/Timer.hpp"
|
||||
#include "wpi/util/DenseMap.hpp"
|
||||
#include "wpi/util/circular_buffer.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -7,15 +7,14 @@
|
||||
#include <ctime>
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/util/DenseMap.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/UnlimitedHandleResource.h"
|
||||
#include "wpi/util/DenseMap.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <string>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
@@ -16,6 +15,7 @@
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.h"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -14,6 +14,18 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "SystemServerInternal.h"
|
||||
#include "mrc/NtNetComm.h"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/proto/ControlData.h"
|
||||
#include "wpi/hal/proto/ErrorInfo.h"
|
||||
#include "wpi/hal/proto/JoystickDescriptor.h"
|
||||
#include "wpi/hal/proto/JoystickRumbleData.h"
|
||||
#include "wpi/hal/proto/MatchInfo.h"
|
||||
#include "wpi/hal/proto/OpMode.h"
|
||||
#include "wpi/nt/BooleanTopic.hpp"
|
||||
#include "wpi/nt/IntegerTopic.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
@@ -27,18 +39,6 @@
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "SystemServerInternal.h"
|
||||
#include "wpi/hal/DriverStation.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/proto/ControlData.h"
|
||||
#include "wpi/hal/proto/ErrorInfo.h"
|
||||
#include "wpi/hal/proto/JoystickDescriptor.h"
|
||||
#include "wpi/hal/proto/JoystickRumbleData.h"
|
||||
#include "wpi/hal/proto/MatchInfo.h"
|
||||
#include "wpi/hal/proto/OpMode.h"
|
||||
#include "mrc/NtNetComm.h"
|
||||
|
||||
static_assert(sizeof(int32_t) >= sizeof(int),
|
||||
"FRC_NetworkComm status variable is larger than 32 bits");
|
||||
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/MemoryBuffer.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "CANInternal.h"
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
@@ -32,6 +25,12 @@
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/Notifier.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/util/MemoryBuffer.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
#include <cstring>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "wpi/hal/DIO.h"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
|
||||
#include <numbers>
|
||||
|
||||
#include "wpi/nt/DoubleArrayTopic.hpp"
|
||||
#include "wpi/nt/DoubleTopic.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "SystemServerInternal.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/nt/DoubleArrayTopic.hpp"
|
||||
#include "wpi/nt/DoubleTopic.hpp"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
|
||||
#define IMU_PREFIX "/imu/"
|
||||
|
||||
|
||||
@@ -12,17 +12,16 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/SmallVector.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/condition_variable.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/cpp/fpga_clock.h"
|
||||
#include "wpi/hal/handles/UnlimitedHandleResource.h"
|
||||
#include "wpi/hal/simulation/NotifierData.h"
|
||||
#include "wpi/util/SmallVector.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/condition_variable.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
namespace {
|
||||
struct Notifier {
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
@@ -19,6 +18,7 @@
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/cpp/fpga_clock.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -6,12 +6,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/nt/DoubleTopic.hpp"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "SystemServerInternal.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "mrc/NtNetComm.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/nt/DoubleTopic.hpp"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
|
||||
#include "REVPDH.h"
|
||||
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
#include "wpi/hal/CANAPITypes.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
@@ -21,6 +14,12 @@
|
||||
#include "HALInternal.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "rev/PDHFrames.h"
|
||||
#include "wpi/hal/CAN.h"
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
#include "wpi/hal/CANAPITypes.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
#include "HALInitializer.h"
|
||||
#include "HALInternal.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "rev/PHFrames.h"
|
||||
#include "wpi/hal/CANAPI.h"
|
||||
#include "wpi/hal/Errors.h"
|
||||
#include "wpi/hal/handles/IndexedHandleResource.h"
|
||||
#include "rev/PHFrames.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "wpi/nt/IntegerTopic.hpp"
|
||||
|
||||
#include "PortsInternal.h"
|
||||
#include "wpi/hal/handles/DigitalHandleResource.h"
|
||||
#include "wpi/hal/handles/HandlesInternal.h"
|
||||
#include "wpi/nt/IntegerTopic.hpp"
|
||||
|
||||
namespace hal {
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "SystemServerInternal.h"
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/StringTopic.hpp"
|
||||
#include "wpi/util/StringMap.hpp"
|
||||
#include "wpi/util/string.h"
|
||||
|
||||
#include "SystemServerInternal.h"
|
||||
|
||||
namespace {
|
||||
struct SystemServerUsageReporting {
|
||||
nt::NetworkTableInstance ntInst;
|
||||
|
||||
Reference in New Issue
Block a user