Replace C++ unit .to<double>() with .value() (#6317)

The latter is shorter and is what we use everywhere else.
This commit is contained in:
Tyler Veness
2024-01-27 07:58:25 -08:00
committed by GitHub
parent bbb230491a
commit 177132fa2a
3 changed files with 8 additions and 8 deletions

View File

@@ -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());
}
}