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

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

#include <frc/kinematics/DifferentialDriveWheelPositions.h>

Public Member Functions

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

Public Attributes

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

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
inlineconstexpr

◆ operator==()

bool frc::DifferentialDriveWheelPositions::operator== ( const DifferentialDriveWheelPositions & other) const
constexprdefault

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: