CTRE Phoenix 6 C++ 24.50.0-alpha-2
ctre::phoenix6::swerve::impl::SwerveModulePosition Struct Reference

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

#include <ctre/phoenix6/swerve/impl/SwerveDriveKinematics.hpp>

Public Member Functions

SwerveModulePosition Interpolate (SwerveModulePosition const &endValue, double t) const
 
bool operator== (SwerveModulePosition const &other) const
 
bool operator!= (SwerveModulePosition const &other) const
 

Public Attributes

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

Detailed Description

Represents the position of one swerve module.

Member Function Documentation

◆ Interpolate()

SwerveModulePosition ctre::phoenix6::swerve::impl::SwerveModulePosition::Interpolate ( SwerveModulePosition const &  endValue,
double  t 
) const
inline

◆ operator!=()

bool ctre::phoenix6::swerve::impl::SwerveModulePosition::operator!= ( SwerveModulePosition const &  other) const
inline

◆ operator==()

bool ctre::phoenix6::swerve::impl::SwerveModulePosition::operator== ( SwerveModulePosition const &  other) const
inline

Member Data Documentation

◆ angle

Rotation2d ctre::phoenix6::swerve::impl::SwerveModulePosition::angle

Angle of the module.

◆ distance

units::meter_t ctre::phoenix6::swerve::impl::SwerveModulePosition::distance = 0_m

Distance the wheel of a module has traveled.


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