public final class MotorConfigurationType extends UserConfigurationType implements java.lang.Cloneable
MotorConfigurationType
contains the amalgamated set of information that
is known about a given type of motor.UserConfigurationType.SerializationProxy
ConfigurationType.DeviceFlavor, ConfigurationType.DisplayNameFlavor
description, name
Constructor and Description |
---|
MotorConfigurationType() |
MotorConfigurationType(java.lang.Class clazz,
java.lang.String xmlTag) |
getDescription, getDeviceFlavor, getDisplayName, getName, getXmlTag, getXmlTagAliases, isBuiltIn, isCompatibleWith, isDeprecated, isDeviceFlavor, isOnBotJava, processAnnotation, toUSBDeviceType
public MotorConfigurationType(java.lang.Class clazz, java.lang.String xmlTag)
public MotorConfigurationType()
public double getTicksPerRev()
public double getAchieveableMaxTicksPerSecond()
public int getAchieveableMaxTicksPerSecondRounded()
public void setTicksPerRev(double ticksPerRev)
public double getGearing()
public void setGearing(double gearing)
public double getMaxRPM()
public void setMaxRPM(double maxRPM)
public double getAchieveableMaxRPMFraction()
public void setAchieveableMaxRPMFraction(double achieveableMaxRPMFraction)
public Rotation getOrientation()
public void setOrientation(Rotation orientation)
public boolean hasModernRoboticsParams()
public ModernRoboticsMotorControllerParamsState getModernRoboticsParams()
public boolean hasExpansionHubVelocityParams()
public ExpansionHubMotorControllerParamsState getHubVelocityParams()
public boolean hasExpansionHubPositionParams()
public ExpansionHubMotorControllerParamsState getHubPositionParams()
public DistributorInfoState getDistributorInfo()
public static MotorConfigurationType getUnspecifiedMotorType()
public static MotorConfigurationType getMotorType(java.lang.Class<?> clazz)
public MotorConfigurationType clone()
clone
in class java.lang.Object
public boolean processAnnotation(java.lang.Object params)
public boolean processAnnotation(MotorType motorType)
public boolean processAnnotation(MotorType motorType)
public boolean processAnnotation(ModernRoboticsMotorControllerParams params)
public boolean processAnnotation(ExpansionHubPIDFVelocityParams params)
public boolean processAnnotation(ExpansionHubMotorControllerVelocityParams params)
public boolean processAnnotation(ExpansionHubPIDFPositionParams params)
public boolean processAnnotation(ExpansionHubMotorControllerPositionParams params)
public boolean processAnnotation(DistributorInfo info)
public void finishedAnnotations(java.lang.Class clazz)
finishedAnnotations
in class UserConfigurationType