mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -7,8 +7,8 @@
|
||||
#include <cmath>
|
||||
|
||||
#include "wpi/math/linalg/DARE.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
#include "wpi/math/system/Discretization.hpp"
|
||||
#include "wpi/math/util/MathUtil.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include "wpi/math/estimator/MecanumDrivePoseEstimator.hpp"
|
||||
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/math/estimator/AngleStatistics.hpp"
|
||||
#include "wpi/math/util/MathShared.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include "wpi/math/estimator/MecanumDrivePoseEstimator3d.hpp"
|
||||
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/math/estimator/AngleStatistics.hpp"
|
||||
#include "wpi/math/util/MathShared.hpp"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Ellipse2dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry2d.npb.h"
|
||||
|
||||
std::optional<frc::Ellipse2d> wpi::Protobuf<frc::Ellipse2d>::Unpack(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Pose2dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry2d.npb.h"
|
||||
|
||||
std::optional<frc::Pose2d> wpi::Protobuf<frc::Pose2d>::Unpack(
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
|
||||
#include "wpi/math/geometry/proto/Pose3dProto.hpp"
|
||||
|
||||
#include "wpi/math/geometry/Pose3d.hpp"
|
||||
#include "wpi/util/protobuf/Protobuf.hpp"
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpi/math/geometry/Pose3d.hpp"
|
||||
#include "wpimath/protobuf/geometry3d.npb.h"
|
||||
|
||||
std::optional<frc::Pose3d> wpi::Protobuf<frc::Pose3d>::Unpack(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Rectangle2dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry2d.npb.h"
|
||||
|
||||
std::optional<frc::Rectangle2d> wpi::Protobuf<frc::Rectangle2d>::Unpack(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Rotation3dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry3d.npb.h"
|
||||
|
||||
std::optional<frc::Rotation3d> wpi::Protobuf<frc::Rotation3d>::Unpack(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Transform2dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry2d.npb.h"
|
||||
|
||||
std::optional<frc::Transform2d> wpi::Protobuf<frc::Transform2d>::Unpack(
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/geometry/proto/Transform3dProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/geometry3d.npb.h"
|
||||
|
||||
std::optional<frc::Transform3d> wpi::Protobuf<frc::Transform3d>::Unpack(
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_ArmFeedforwardJNI.h"
|
||||
#include "wpi/math/controller/ArmFeedforward.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "Exceptions.hpp"
|
||||
#include "org_wpilib_math_jni_DAREJNI.h"
|
||||
#include "wpi/math/linalg/DARE.hpp"
|
||||
#include "wpi/math/fmt/Eigen.hpp"
|
||||
#include "wpi/math/linalg/DARE.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/QR>
|
||||
#include <unsupported/Eigen/MatrixFunctions>
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_EigenJNI.h"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#include "wpi/util/array.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_Ellipse2dJNI.h"
|
||||
#include "wpi/math/geometry/Ellipse2d.hpp"
|
||||
#include "wpi/util/array.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include <Eigen/Core>
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_StateSpaceUtilJNI.h"
|
||||
#include "wpi/math/util/StateSpaceUtil.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_Transform3dJNI.h"
|
||||
#include "wpi/math/geometry/Quaternion.hpp"
|
||||
#include "wpi/math/geometry/Rotation3d.hpp"
|
||||
@@ -13,6 +11,7 @@
|
||||
#include "wpi/math/geometry/Twist3d.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -4,13 +4,12 @@
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
#include "org_wpilib_math_jni_Twist3dJNI.h"
|
||||
#include "wpi/math/geometry/Transform3d.hpp"
|
||||
#include "wpi/math/geometry/Twist3d.hpp"
|
||||
#include "wpi/units/angle.hpp"
|
||||
#include "wpi/units/length.hpp"
|
||||
#include "wpi/util/jni_util.hpp"
|
||||
|
||||
using namespace wpi::java;
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/kinematics/proto/MecanumDriveKinematicsProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/kinematics.npb.h"
|
||||
|
||||
std::optional<frc::MecanumDriveKinematics>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/kinematics/proto/SwerveModulePositionProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/kinematics.npb.h"
|
||||
|
||||
std::optional<frc::SwerveModulePosition>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/kinematics/proto/SwerveModuleStateProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/kinematics.npb.h"
|
||||
|
||||
std::optional<frc::SwerveModuleState>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/spline/proto/CubicHermiteSplineProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/spline.npb.h"
|
||||
|
||||
std::optional<frc::CubicHermiteSpline>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "wpi/math/spline/proto/QuinticHermiteSplineProto.hpp"
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/spline.npb.h"
|
||||
|
||||
std::optional<frc::QuinticHermiteSpline>
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
#include "wpi/math/spline/SplineHelper.hpp"
|
||||
#include "wpi/math/spline/SplineParameterizer.hpp"
|
||||
#include "wpi/math/trajectory/TrajectoryParameterizer.hpp"
|
||||
#include "wpi/util/print.hpp"
|
||||
|
||||
using namespace frc;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/trajectory.npb.h"
|
||||
|
||||
std::optional<frc::Trajectory> wpi::Protobuf<frc::Trajectory>::Unpack(
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
|
||||
#include "wpimath/protobuf/trajectory.npb.h"
|
||||
|
||||
std::optional<frc::Trajectory::State>
|
||||
|
||||
@@ -7,11 +7,10 @@
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "wpi/units/time.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "wpi/units/time.hpp"
|
||||
|
||||
using namespace wpi::math;
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user