Fix Typos (NFC) (#5137)

This commit is contained in:
sciencewhiz
2023-02-26 15:06:37 -08:00
committed by GitHub
parent ce3686b80d
commit 4af84a1c12
71 changed files with 95 additions and 95 deletions

View File

@@ -222,7 +222,7 @@ public class Matrix<R extends Num, C extends Num> {
*
* <p>c<sub>i,j</sub> = a<sub>i,j</sub>*other<sub>i,j</sub>
*
* @param other The other {@link Matrix} to preform element multiplication on.
* @param other The other {@link Matrix} to perform element multiplication on.
* @return The element by element multiplication of "this" and other.
*/
public final Matrix<R, C> elementTimes(Matrix<R, C> other) {

View File

@@ -8,7 +8,7 @@ import java.util.Objects;
/**
* A change in distance along a 2D arc since the last pose update. We can use ideas from
* differential calculus to create new Pose2d objects from a Twist2d and vise versa.
* differential calculus to create new Pose2d objects from a Twist2d and vice versa.
*
* <p>A Twist can be used to represent a difference between two poses.
*/

View File

@@ -8,7 +8,7 @@ import java.util.Objects;
/**
* A change in distance along a 3D arc since the last pose update. We can use ideas from
* differential calculus to create new Pose3d objects from a Twist3d and vise versa.
* differential calculus to create new Pose3d objects from a Twist3d and vice versa.
*
* <p>A Twist can be used to represent a difference between two poses.
*/

View File

@@ -71,8 +71,8 @@ public final class SplineParameterizer {
private SplineParameterizer() {}
/**
* Parameterizes the spline. This method breaks up the spline into various arcs until their dx,
* dy, and dtheta are within specific tolerances.
* Parametrizes the spline. This method breaks up the spline into various arcs until their dx, dy,
* and dtheta are within specific tolerances.
*
* @param spline The spline to parameterize.
* @return A list of poses and curvatures that represents various points on the spline.
@@ -84,8 +84,8 @@ public final class SplineParameterizer {
}
/**
* Parameterizes the spline. This method breaks up the spline into various arcs until their dx,
* dy, and dtheta are within specific tolerances.
* Parametrizes the spline. This method breaks up the spline into various arcs until their dx, dy,
* and dtheta are within specific tolerances.
*
* @param spline The spline to parameterize.
* @param t0 Starting internal spline parameter. It is recommended to use 0.0.

View File

@@ -314,7 +314,7 @@ class SwerveDrivePoseEstimator {
// The current gyroscope angle.
Rotation2d gyroAngle;
// The distances traveled and rotations meaured at each module.
// The distances traveled and rotations measured at each module.
wpi::array<SwerveModulePosition, NumModules> modulePositions;
/**

View File

@@ -14,7 +14,7 @@ namespace frc {
/**
* A change in distance along a 2D arc since the last pose update. We can use
* ideas from differential calculus to create new Pose2ds from a Twist2d and
* vise versa.
* vice versa.
*
* A Twist can be used to represent a difference between two poses.
*/

View File

@@ -15,7 +15,7 @@ namespace frc {
/**
* A change in distance along a 3D arc since the last pose update. We can use
* ideas from differential calculus to create new Pose3ds from a Twist3d and
* vise versa.
* vice versa.
*
* A Twist can be used to represent a difference between two poses.
*/

View File

@@ -56,7 +56,7 @@ class WPILIB_DLLEXPORT SplineParameterizer {
};
/**
* Parameterizes the spline. This method breaks up the spline into various
* Parametrizes the spline. This method breaks up the spline into various
* arcs until their dx, dy, and dtheta are within specific tolerances.
*
* @param spline The spline to parameterize.

View File

@@ -1394,7 +1394,7 @@ namespace units
* error. This value should be chosen to be as high as possible before
* integer overflow errors occur in the compiler.
* @note USE WITH CAUTION. The is an approximate value. In general, squared<sqrt<meter>> != meter,
* i.e. the operation is not reversible, and it will result in propogated approximations.
* i.e. the operation is not reversible, and it will result in propagated approximations.
* Use only when absolutely necessary.
*/
template<class U, std::intmax_t Eps = 10000000000>
@@ -1758,7 +1758,7 @@ namespace units
#ifdef FOR_DOXYGEN_PURPOSOES_ONLY
/**
* @ingroup TypeTraits
* @brief Trait for accessing the publically defined types of `units::unit_t`
* @brief Trait for accessing the publicly defined types of `units::unit_t`
* @details The units library determines certain properties of the unit_t types passed to them
* and what they represent by using the members of the corresponding unit_t_traits instantiation.
*/
@@ -1788,7 +1788,7 @@ namespace units
/**
* @ingroup TypeTraits
* @brief Trait for accessing the publically defined types of `units::unit_t`
* @brief Trait for accessing the publicly defined types of `units::unit_t`
* @details
*/
template<typename T>
@@ -2972,7 +2972,7 @@ namespace units {
#ifdef FOR_DOXYGEN_PURPOSES_ONLY
/**
* @ingroup TypeTraits
* @brief Trait for accessing the publically defined types of `units::unit_value_t_traits`
* @brief Trait for accessing the publicly defined types of `units::unit_value_t_traits`
* @details The units library determines certain properties of the `unit_value_t` types passed to
* them and what they represent by using the members of the corresponding `unit_value_t_traits`
* instantiation.
@@ -2999,7 +2999,7 @@ namespace units {
/**
* @ingroup TypeTraits
* @brief Trait for accessing the publically defined types of `units::unit_value_t_traits`
* @brief Trait for accessing the publicly defined types of `units::unit_value_t_traits`
* @details
*/
template<typename T>

View File

@@ -271,7 +271,7 @@ TEST(DifferentialDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) {
kinematics, frc::Rotation2d{}, 0_m, 0_m, frc::Pose2d{},
{0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}};
// Add enough measurements to fill up the bufer
// Add enough measurements to fill up the buffer
for (auto time = 0.0_s; time < 4_s; time += 0.02_s) {
estimator.UpdateWithTime(time, frc::Rotation2d{}, 0_m, 0_m);
}

View File

@@ -272,7 +272,7 @@ TEST(MecanumDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) {
kinematics, frc::Rotation2d{}, frc::MecanumDriveWheelPositions{},
frc::Pose2d{}, {0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}};
// Add enough measurements to fill up the bufer
// Add enough measurements to fill up the buffer
for (auto time = 0.0_s; time < 4_s; time += 0.02_s) {
estimator.UpdateWithTime(time, frc::Rotation2d{},
frc::MecanumDriveWheelPositions{});

View File

@@ -290,7 +290,7 @@ TEST(SwerveDrivePoseEstimatorTest, TestDiscardStaleVisionMeasurements) {
kinematics, frc::Rotation2d{}, {fl, fr, bl, br},
frc::Pose2d{}, {0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}};
// Add enough measurements to fill up the bufer
// Add enough measurements to fill up the buffer
for (auto time = 0.0_s; time < 4_s; time += 0.02_s) {
estimator.UpdateWithTime(time, frc::Rotation2d{}, {fl, fr, bl, br});
}