17template <
size_t NumModules>
45 for (
size_t i = 0; i < NumModules; i++) {
46 result[i] = positions[i].Interpolate(endValue.
positions[i], t);
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
This class is a wrapper around std::array that does compile time size checking.
Definition: array.h:26
Definition: AprilTagPoseEstimator.h:15
Represents the wheel positions for a swerve drive drivetrain.
Definition: SwerveDriveWheelPositions.h:18
SwerveDriveWheelPositions< NumModules > Interpolate(const SwerveDriveWheelPositions< NumModules > &endValue, double t) const
Definition: SwerveDriveWheelPositions.h:41
bool operator==(const SwerveDriveWheelPositions &other) const =default
Checks equality between this SwerveDriveWheelPositions and another object.
wpi::array< SwerveModulePosition, NumModules > positions
The distances driven by the wheels.
Definition: SwerveDriveWheelPositions.h:22
bool operator!=(const SwerveDriveWheelPositions &other) const =default
Checks inequality between this SwerveDriveWheelPositions and another object.
constexpr empty_array_t empty_array
Definition: array.h:16