mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[wpimath] Make SplineParameterizer constants inline (#6920)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
// Copyright (c) FIRST and other WPILib contributors.
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "frc/spline/SplineParameterizer.h"
|
||||
|
||||
constexpr units::meter_t frc::SplineParameterizer::kMaxDx;
|
||||
constexpr units::meter_t frc::SplineParameterizer::kMaxDy;
|
||||
constexpr units::radian_t frc::SplineParameterizer::kMaxDtheta;
|
||||
@@ -127,9 +127,9 @@ class WPILIB_DLLEXPORT SplineParameterizer {
|
||||
|
||||
private:
|
||||
// Constraints for spline parameterization.
|
||||
static constexpr units::meter_t kMaxDx = 5_in;
|
||||
static constexpr units::meter_t kMaxDy = 0.05_in;
|
||||
static constexpr units::radian_t kMaxDtheta = 0.0872_rad;
|
||||
static inline constexpr units::meter_t kMaxDx = 5_in;
|
||||
static inline constexpr units::meter_t kMaxDy = 0.05_in;
|
||||
static inline constexpr units::radian_t kMaxDtheta = 0.0872_rad;
|
||||
|
||||
struct StackContents {
|
||||
double t0;
|
||||
|
||||
Reference in New Issue
Block a user