mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Replace C++ unit .to<double>() with .value() (#6317)
The latter is shorter and is what we use everywhere else.
This commit is contained in:
@@ -52,6 +52,6 @@ TEST(TrajectoryGenerationTest, CurvatureOptimization) {
|
||||
TrajectoryConfig{12_fps, 12_fps_sq});
|
||||
|
||||
for (size_t i = 1; i < t.States().size() - 1; ++i) {
|
||||
EXPECT_NE(0, t.States()[i].curvature.to<double>());
|
||||
EXPECT_NE(0, t.States()[i].curvature.value());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user