Skip to content

Commit

Permalink
[choreolib] Set default year for sample flip (#1156)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 18, 2025
1 parent 85d9368 commit 3d99758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class DifferentialSample {
* @tparam Year The field year.
* @return DifferentialSample that is flipped based on the field layout.
*/
template <int Year>
template <int Year = util::kDefaultYear>
constexpr DifferentialSample Flipped() const {
constexpr auto flipper = choreo::util::GetFlipperForYear<Year>();
if constexpr (flipper.isMirrored) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class SwerveSample {
* @tparam Year The field year.
* @return SwerveSample that is flipped based on the field layout.
*/
template <int Year>
template <int Year = util::kDefaultYear>
constexpr SwerveSample Flipped() const {
constexpr auto flipper = choreo::util::GetFlipperForYear<Year>();
if constexpr (flipper.isMirrored) {
Expand Down

0 comments on commit 3d99758

Please sign in to comment.