Include thirdparty libraries with angle brackets (#5578)

This commit is contained in:
Tyler Veness
2023-08-28 15:13:34 -07:00
committed by GitHub
parent e322ab8e46
commit 8e2a7fd306
329 changed files with 559 additions and 435 deletions

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <numbers>
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/estimator/AngleStatistics.h"

View File

@@ -7,13 +7,14 @@
#include <tuple>
#include <utility>
#include <gtest/gtest.h>
#include "frc/StateSpaceUtil.h"
#include "frc/estimator/DifferentialDrivePoseEstimator.h"
#include "frc/geometry/Pose2d.h"
#include "frc/geometry/Rotation2d.h"
#include "frc/kinematics/DifferentialDriveKinematics.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "gtest/gtest.h"
#include "units/angle.h"
#include "units/length.h"
#include "units/time.h"
@@ -138,6 +139,7 @@ void testFollowTrajectory(
0.15);
if (checkError) {
// NOLINTNEXTLINE(bugprone-integer-division)
EXPECT_LT(errorSum / (trajectory.TotalTime() / dt), 0.05);
EXPECT_LT(maxError, 0.2);
}

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <array>
#include <cmath>
#include "Eigen/QR"
#include <Eigen/QR>
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/StateSpaceUtil.h"
#include "frc/estimator/ExtendedKalmanFilter.h"

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <array>
#include <cmath>
#include "Eigen/Core"
#include <Eigen/Core>
#include <gtest/gtest.h>
#include "frc/estimator/KalmanFilter.h"
#include "frc/system/plant/DCMotor.h"
#include "frc/system/plant/LinearSystemId.h"

View File

@@ -6,11 +6,12 @@
#include <random>
#include <tuple>
#include <gtest/gtest.h>
#include "frc/estimator/MecanumDrivePoseEstimator.h"
#include "frc/geometry/Pose2d.h"
#include "frc/kinematics/MecanumDriveKinematics.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "gtest/gtest.h"
void testFollowTrajectory(
const frc::MecanumDriveKinematics& kinematics,
@@ -129,6 +130,7 @@ void testFollowTrajectory(
0.15);
if (checkError) {
// NOLINTNEXTLINE(bugprone-integer-division)
EXPECT_LT(errorSum / (trajectory.TotalTime() / dt), 0.051);
EXPECT_LT(maxError, 0.2);
}

View File

@@ -8,13 +8,13 @@
#include <tuple>
#include <fmt/format.h>
#include <gtest/gtest.h>
#include <wpi/timestamp.h>
#include "frc/estimator/SwerveDrivePoseEstimator.h"
#include "frc/geometry/Pose2d.h"
#include "frc/kinematics/SwerveDriveKinematics.h"
#include "frc/trajectory/TrajectoryGenerator.h"
#include "gtest/gtest.h"
void testFollowTrajectory(
const frc::SwerveDriveKinematics<4>& kinematics,
@@ -133,6 +133,7 @@ void testFollowTrajectory(
0.15);
if (checkError) {
// NOLINTNEXTLINE(bugprone-integer-division)
EXPECT_LT(errorSum / (trajectory.TotalTime() / dt), 0.058);
EXPECT_LT(maxError, 0.2);
}

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <gtest/gtest.h>
#include <array>
#include <cmath>
#include "Eigen/QR"
#include <Eigen/QR>
#include <gtest/gtest.h>
#include "frc/EigenCore.h"
#include "frc/StateSpaceUtil.h"
#include "frc/estimator/AngleStatistics.h"