mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Add typedefs for common types
This makes complex code significantly easier to read. frc::Vectord<Size> = Eigen::Vector<double, Size> frc::Matrixd<Rows, Cols> = Eigen::Matrix<double, Rows, Cols>
This commit is contained in:
@@ -42,5 +42,5 @@ units::ampere_t DCMotorSim::GetCurrentDraw() const {
|
||||
}
|
||||
|
||||
void DCMotorSim::SetInputVoltage(units::volt_t voltage) {
|
||||
SetInput(Eigen::Vector<double, 1>{voltage.value()});
|
||||
SetInput(Vectord<1>{voltage.value()});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user