mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace .to<double>() and .template to<double>() with .value() (#3667)
It's a less verbose way to do the same thing.
This commit is contained in:
@@ -51,7 +51,7 @@ TEST(StateSpaceSimTest, FlywheelSim) {
|
||||
sim.SetInput(Eigen::Vector<double, 1>{
|
||||
motor.Get() * frc::RobotController::GetInputVoltage()});
|
||||
sim.Update(20_ms);
|
||||
encoderSim.SetRate(sim.GetAngularVelocity().to<double>());
|
||||
encoderSim.SetRate(sim.GetAngularVelocity().value());
|
||||
}
|
||||
|
||||
ASSERT_TRUE(std::abs(200 - encoder.GetRate()) < 0.1);
|
||||
|
||||
Reference in New Issue
Block a user