ChoreoLib
Choreo support library.
Loading...
Searching...
No Matches
choreo::util::MirroredFlipper Struct Reference

#include <choreo/util/AllianceFlipperUtil.h>

Static Public Member Functions

static constexpr units::meter_t FlipX (units::meter_t x)
 
static constexpr units::meter_t FlipY (units::meter_t y)
 
static constexpr units::radian_t FlipHeading (units::radian_t heading)
 

Static Public Attributes

static constexpr bool isMirrored = true
 Whether pose should be mirrored.
 

Detailed Description

X becomes fieldLength - x, leaves the y coordinate unchanged, and heading becomes pi - heading.

Member Function Documentation

◆ FlipHeading()

static constexpr units::radian_t choreo::util::MirroredFlipper::FlipHeading ( units::radian_t  heading)
inlinestaticconstexpr

Flips the heading.

Parameters
headingThe heading to flip.
Returns
The flipped heading.

◆ FlipX()

static constexpr units::meter_t choreo::util::MirroredFlipper::FlipX ( units::meter_t  x)
inlinestaticconstexpr

Flips the X coordinate.

Parameters
xThe X coordinate to flip.
Returns
The flipped X coordinate.

◆ FlipY()

static constexpr units::meter_t choreo::util::MirroredFlipper::FlipY ( units::meter_t  y)
inlinestaticconstexpr

Flips the Y coordinate.

Parameters
yThe Y coordinate to flip.
Returns
The flipped Y coordinate.

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