[wpilibc] Rename DCMotorSim getters (#7614)

This commit is contained in:
Tyler Veness
2024-12-31 16:48:45 -08:00
committed by GitHub
parent 86137c49f5
commit 786d22049b
2 changed files with 15 additions and 3 deletions

View File

@@ -85,3 +85,15 @@ void DCMotorSim::SetInputVoltage(units::volt_t voltage) {
SetInput(Vectord<1>{voltage.value()});
ClampInput(frc::RobotController::GetBatteryVoltage().value());
}
const DCMotor& DCMotorSim::GetGearbox() const {
return m_gearbox;
}
double DCMotorSim::GetGearing() const {
return m_gearing;
}
units::kilogram_square_meter_t DCMotorSim::GetJ() const {
return m_j;
}