WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
frc::SwerveModulePosition Struct Reference

Represents the position of one swerve module. More...

#include <frc/kinematics/SwerveModulePosition.h>

Public Member Functions

constexpr bool operator== (const SwerveModulePosition &other) const
 Checks equality between this SwerveModulePosition and another object.
 
constexpr SwerveModulePosition Interpolate (const SwerveModulePosition &endValue, double t) const
 

Public Attributes

units::meter_t distance = 0_m
 Distance the wheel of a module has traveled.
 
Rotation2d angle
 Angle of the module.
 

Detailed Description

Represents the position of one swerve module.

Member Function Documentation

◆ Interpolate()

SwerveModulePosition frc::SwerveModulePosition::Interpolate ( const SwerveModulePosition & endValue,
double t ) const
inlineconstexpr

◆ operator==()

bool frc::SwerveModulePosition::operator== ( const SwerveModulePosition & other) const
inlineconstexpr

Checks equality between this SwerveModulePosition and another object.

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

Member Data Documentation

◆ angle

Rotation2d frc::SwerveModulePosition::angle

Angle of the module.

◆ distance

units::meter_t frc::SwerveModulePosition::distance = 0_m

Distance the wheel of a module has traveled.


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