[wpimath] Add DCMotor factory function for Romi motors (#3319)

This commit is contained in:
Tyler Veness
2021-04-29 09:59:35 -07:00
committed by GitHub
parent 936d3b9f83
commit ee0eed143a
2 changed files with 19 additions and 0 deletions

View File

@@ -149,6 +149,14 @@ class DCMotor {
static constexpr DCMotor Falcon500(int numMotors = 1) {
return DCMotor(12_V, 4.69_Nm, 257_A, 1.5_A, 6380_rpm, numMotors);
}
/**
* Return a gearbox of Romi/TI_RSLK MAX motors.
*/
static constexpr DCMotor RomiBuiltIn(int numMotors = 1) {
// From https://www.pololu.com/product/1520/specs
return DCMotor(4.5_V, 0.1765_Nm, 1.25_A, 0.13_A, 150_rpm, numMotors);
}
};
} // namespace frc