mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -5,9 +5,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/units/angle.hpp"
|
||||
|
||||
#include "wpi/math/geometry/Rotation2d.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -4,16 +4,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/angular_acceleration.hpp"
|
||||
#include "wpi/units/angular_velocity.hpp"
|
||||
#include "wpi/units/moment_of_inertia.hpp"
|
||||
#include "wpi/units/torque.hpp"
|
||||
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
/**
|
||||
* Represents a simulated DC motor mechanism.
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/math/linalg/EigenCore.hpp"
|
||||
#include "wpi/math/kinematics/DifferentialDriveKinematics.hpp"
|
||||
#include "wpi/math/linalg/EigenCore.hpp"
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/units/moment_of_inertia.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
#include "wpi/simulation/CallbackStore.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/units/frequency.hpp"
|
||||
|
||||
#include "wpi/simulation/CallbackStore.hpp"
|
||||
#include "wpi/units/frequency.hpp"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/units/mass.hpp"
|
||||
#include "wpi/units/velocity.hpp"
|
||||
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
/**
|
||||
* Represents a simulated elevator mechanism.
|
||||
|
||||
@@ -4,15 +4,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/units/angular_acceleration.hpp"
|
||||
#include "wpi/units/angular_velocity.hpp"
|
||||
#include "wpi/units/moment_of_inertia.hpp"
|
||||
#include "wpi/units/torque.hpp"
|
||||
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
/**
|
||||
* Represents a simulated flywheel mechanism.
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "wpi/math/linalg/EigenCore.hpp"
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/units/current.hpp"
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
#include "wpi/math/linalg/EigenCore.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/math/system/LinearSystem.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
/**
|
||||
* This class helps simulate linear systems. To use this class, do the following
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "wpi/hardware/motor/PWMMotorController.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -7,13 +7,12 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "wpi/simulation/CallbackStore.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/units/current.hpp"
|
||||
#include "wpi/units/temperature.hpp"
|
||||
#include "wpi/units/voltage.hpp"
|
||||
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/simulation/CallbackStore.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/StringTopic.hpp"
|
||||
|
||||
#include "wpi/opmode/RobotBase.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
|
||||
@@ -5,9 +5,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "wpi/hal/SimDevice.h"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
#include "wpi/hardware/range/SharpIR.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
|
||||
namespace frc {
|
||||
|
||||
|
||||
@@ -6,14 +6,13 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/units/mass.hpp"
|
||||
#include "wpi/units/moment_of_inertia.hpp"
|
||||
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/math/system/plant/DCMotor.hpp"
|
||||
|
||||
namespace frc::sim {
|
||||
/**
|
||||
* Represents a simulated arm mechanism.
|
||||
|
||||
Reference in New Issue
Block a user