mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] DCMotor: Add X44 and Minion (#8319)
This commit is contained in:
@@ -310,6 +310,42 @@ public class DCMotor implements ProtobufSerializable, StructSerializable {
|
||||
12, 9.37, 483, 2, Units.rotationsPerMinuteToRadiansPerSecond(5800), numMotors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a gearbox of Kraken X44 brushless motors.
|
||||
*
|
||||
* @param numMotors Number of motors in the gearbox.
|
||||
* @return a gearbox of Kraken X44 motors.
|
||||
*/
|
||||
public static DCMotor getKrakenX44(int numMotors) {
|
||||
// From https://motors.ctr-electronics.com/dyno/dynometer-testing/
|
||||
return new DCMotor(
|
||||
12, 4.11, 279, 2, Units.rotationsPerMinuteToRadiansPerSecond(7758), numMotors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a gearbox of Kraken X44 brushless motors with FOC (Field-Oriented Control) enabled.
|
||||
*
|
||||
* @param numMotors Number of motors in the gearbox.
|
||||
* @return A gearbox of Kraken X44 FOC enabled motors.
|
||||
*/
|
||||
public static DCMotor getKrakenX44Foc(int numMotors) {
|
||||
// From https://motors.ctr-electronics.com/dyno/dynometer-testing/
|
||||
return new DCMotor(
|
||||
12, 5.01, 329, 2, Units.rotationsPerMinuteToRadiansPerSecond(7368), numMotors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a gearbox of Minion brushless motors.
|
||||
*
|
||||
* @param numMotors Number of motors in the gearbox.
|
||||
* @return A gearbox of Minion motors.
|
||||
*/
|
||||
public static DCMotor getMinion(int numMotors) {
|
||||
// From https://motors.ctr-electronics.com/dyno/dynometer-testing/
|
||||
return new DCMotor(
|
||||
12, 3.17, 211, 2, Units.rotationsPerMinuteToRadiansPerSecond(7704), numMotors);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a gearbox of Neo Vortex brushless motors.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user