WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::math::DifferentialDriveWheelPositions Struct Reference

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

#include <wpi/math/kinematics/DifferentialDriveWheelPositions.hpp>

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

wpi::units::meter_t left = 0_m
 Distance driven by the left side.
wpi::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 wpi::math::DifferentialDriveWheelPositions::Interpolate ( const DifferentialDriveWheelPositions & endValue,
double t ) const
inlineconstexpr

◆ operator==()

bool wpi::math::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

wpi::units::meter_t wpi::math::DifferentialDriveWheelPositions::left = 0_m

Distance driven by the left side.

◆ right

wpi::units::meter_t wpi::math::DifferentialDriveWheelPositions::right = 0_m

Distance driven by the right side.


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