public class DCMotorTransmission
Model of a DC motor rotating a shaft. All parameters refer to the output (e.g. should already consider gearing and efficiency losses). The motor is assumed to be symmetric forward/reverse.
Constructor and Description |
---|
DCMotorTransmission(double speedPerVolt,
double torquePerVolt,
double frictionVoltage,
double stallAmperage)
Model of a DC motor rotating a shaft. All parameters refer to the output (e.g. should already consider gearing
and efficiency losses). The motor is assumed to be symmetric forward/reverse.
|
Modifier and Type | Method and Description |
---|---|
double |
freeSpeedAtVoltage(double voltage)
Returns the idle speed of the motor at this voltage
|
double |
getFrictionVoltage()
the voltage needed to overcome static
|
double |
getInternalResistance() |
double |
getSpeedForVoltageAndAmperage(double voltage,
double amperage)
Get the theoretical speed for voltage and amperage.
|
double |
getSpeedPerVolt()
kV,
|
double |
getStallAmperage()
the stall amperage at 12 volts
|
double |
getTorqueForVoltage(double outputSpeed,
double voltage)
Get the theoretical torque applied by the motor at a given speed and voltage
|
double |
getTorquePerAmp() |
double |
getTorquePerVolt()
N•m per Amp
|
double |
getVoltageForTorque(double outputSpeed,
double torque)
Get the required voltage for the requested torque at a speed.
|
public DCMotorTransmission(double speedPerVolt, double torquePerVolt, double frictionVoltage, double stallAmperage)
Model of a DC motor rotating a shaft. All parameters refer to the output (e.g. should already consider gearing and efficiency losses). The motor is assumed to be symmetric forward/reverse.
speedPerVolt
- kV, or rad/s per V (no load)torquePerVolt
- N•m per Amp (stall)frictionVoltage
- the voltage needed to overcome staticstallAmperage
- the stall amperage at 12 voltspublic double getTorquePerAmp()
public double getInternalResistance()
public double freeSpeedAtVoltage(double voltage)
Returns the idle speed of the motor at this voltage
voltage
- The voltage across the motorpublic double getTorqueForVoltage(double outputSpeed, double voltage)
Get the theoretical torque applied by the motor at a given speed and voltage
outputSpeed
- The speed of the motor in rad/svoltage
- The voltage across the motorpublic double getVoltageForTorque(double outputSpeed, double torque)
Get the required voltage for the requested torque at a speed.
outputSpeed
- The output speed of the motor in rad/storque
- The output torque of the motor in N•mpublic double getSpeedForVoltageAndAmperage(double voltage, double amperage)
Get the theoretical speed for voltage and amperage.
voltage
- amperage
- public double getSpeedPerVolt()
kV,
or rad/s per V (no load)
public double getTorquePerVolt()
N•m per Amp
(stall)
public double getFrictionVoltage()
the voltage needed to overcome static
public double getStallAmperage()
the stall amperage at 12 volts