WPILibC++ 2024.3.2
frc::SwerveDriveWheelPositions< NumModules > Struct Template Reference

Represents the wheel positions for a swerve drive drivetrain. More...

#include <frc/kinematics/SwerveDriveWheelPositions.h>

Public Member Functions

bool operator== (const SwerveDriveWheelPositions &other) const =default
 Checks equality between this SwerveDriveWheelPositions and another object. More...
 
bool operator!= (const SwerveDriveWheelPositions &other) const =default
 Checks inequality between this SwerveDriveWheelPositions and another object. More...
 
SwerveDriveWheelPositions< NumModules > Interpolate (const SwerveDriveWheelPositions< NumModules > &endValue, double t) const
 

Public Attributes

wpi::array< SwerveModulePosition, NumModules > positions
 The distances driven by the wheels. More...
 

Detailed Description

template<size_t NumModules>
struct frc::SwerveDriveWheelPositions< NumModules >

Represents the wheel positions for a swerve drive drivetrain.

Member Function Documentation

◆ Interpolate()

template<size_t NumModules>
SwerveDriveWheelPositions< NumModules > frc::SwerveDriveWheelPositions< NumModules >::Interpolate ( const SwerveDriveWheelPositions< NumModules > &  endValue,
double  t 
) const
inline

◆ operator!=()

template<size_t NumModules>
bool frc::SwerveDriveWheelPositions< NumModules >::operator!= ( const SwerveDriveWheelPositions< NumModules > &  other) const
default

Checks inequality between this SwerveDriveWheelPositions and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are not equal.

◆ operator==()

template<size_t NumModules>
bool frc::SwerveDriveWheelPositions< NumModules >::operator== ( const SwerveDriveWheelPositions< NumModules > &  other) const
default

Checks equality between this SwerveDriveWheelPositions and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are equal.

Member Data Documentation

◆ positions

template<size_t NumModules>
wpi::array<SwerveModulePosition, NumModules> frc::SwerveDriveWheelPositions< NumModules >::positions

The distances driven by the wheels.


The documentation for this struct was generated from the following file: