WPILibC++ 2024.3.2
frc::DifferentialDriveWheelPositions Struct Reference

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

#include <frc/kinematics/DifferentialDriveWheelPositions.h>

Public Member Functions

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

Public Attributes

units::meter_t left = 0_m
 Distance driven by the left side. More...
 
units::meter_t right = 0_m
 Distance driven by the right side. More...
 

Detailed Description

Represents the wheel positions for a differential drive drivetrain.

Member Function Documentation

◆ Interpolate()

DifferentialDriveWheelPositions frc::DifferentialDriveWheelPositions::Interpolate ( const DifferentialDriveWheelPositions endValue,
double  t 
) const
inline

◆ operator!=()

bool frc::DifferentialDriveWheelPositions::operator!= ( const DifferentialDriveWheelPositions other) const
default

Checks inequality between this DifferentialDriveWheelPositions and another object.

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

◆ operator==()

bool frc::DifferentialDriveWheelPositions::operator== ( const DifferentialDriveWheelPositions other) const
default

Checks equality between this DifferentialDriveWheelPositions and another object.

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

Member Data Documentation

◆ left

units::meter_t frc::DifferentialDriveWheelPositions::left = 0_m

Distance driven by the left side.

◆ right

units::meter_t frc::DifferentialDriveWheelPositions::right = 0_m

Distance driven by the right side.


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