Package tagalong.subsystems.micro.confs
Class ElevatorConf
java.lang.Object
tagalong.subsystems.micro.confs.MicrosystemConf
tagalong.subsystems.micro.confs.ElevatorConf
Configuration for the elevator microsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double
Angle of the elevatorfinal MassUnits
Unit of the carriage mass (default: kilograms)final double
Value of the carriage massfinal double
Value of the drum circumferencefinal double
Value of the drumDiameterfinal DistanceUnits
Unit for the drum diameter (default: meters)final double
Duration of stalling in seconds necessary for the elevator zero command to finishfinal double
Power for zeroing the elevatorfinal double
Positional tolerance in meters for zeroing the elevatorfinal ElevatorFeedforward
Feedforward model for the elevatorfinal double
Length of the linefinal double
Dimension of the mechanical systemfinal DistanceUnits
Units for the positional limitfinal double
Values for the positional minimum and maximumfinal double
Values for the positional minimum and maximumfinal String
Sim root namefinal double
Sim root x coordinatefinal double
Sim root y coordinatestatic final FeedforwardConstants
Fields inherited from class tagalong.subsystems.micro.confs.MicrosystemConf
defaultLowerTolerance, defaultTolerancesUnit, defaultUpperTolerance, motorCanBus, motorConfig, motorDeviceIDs, motorDirection, motorDisabledBrakeMode, motorEnabledBrakeMode, motorToMechRatio, motorTypes, name, numMotors, trapezoidalAccelerationUnit, trapezoidalLimits, trapezoidalLimitsAcceleration, trapezoidalLimitsVelocity, trapezoidalVelocityUnit
-
Constructor Summary
ConstructorsConstructorDescriptionElevatorConf
(String name, Motors[] motorTypes, int[] motorDeviceIDs, String[] motorCanBus, com.ctre.phoenix6.signals.InvertedValue[] motorDirection, com.ctre.phoenix6.signals.NeutralModeValue[] motorEnabledBrakeMode, com.ctre.phoenix6.signals.NeutralModeValue[] motorDisabledBrakeMode, int[][] gearRatio, DistanceUnits positionalLimitsUnit, double positionalMin, double positionalMax, DistanceUnits trapezoidalLengthUnit, VelocityUnits trapezoidalVelocityUnit, double trapezoidalLimitsVelocity, AccelerationUnits trapezoidalAccelerationUnit, double trapezoidalLimitsAcceleration, DistanceUnits defaultTolerancesUnit, double defaultLowerTolerance, double defaultUpperTolerance, FeedforwardConstants feedForward, FeedforwardConstants simFeedForward, com.ctre.phoenix6.configs.CurrentLimitsConfigs currentLimitsConfigs, PIDSGVAConstants slot0, PIDSGVAConstants slot1, PIDSGVAConstants slot2, MassUnits carriageMassUnit, double carriageMassValue, double mech2dDim, String rootName, double rootX, double rootY, double lineLength, double angle, PIDSGVAConstants simSlot0, PIDSGVAConstants simSlot1, PIDSGVAConstants simSlot2, DistanceUnits drumDiameterUnit, double drumDiameter) -
Method Summary
Methods inherited from class tagalong.subsystems.micro.confs.MicrosystemConf
calculateGearRatio
-
Field Details
-
positionalLimitUnit
Units for the positional limit -
positionalMin
Values for the positional minimum and maximum -
positionalMax
Values for the positional minimum and maximum -
drumDiameterUnit
Unit for the drum diameter (default: meters) -
drumDiameter
Value of the drumDiameter -
drumCircumference
Value of the drum circumference -
feedForward
Feedforward model for the elevator -
carriageMassUnit
Unit of the carriage mass (default: kilograms) -
carriageMassValue
Value of the carriage mass -
mech2dDim
Dimension of the mechanical system -
rootName
Sim root name -
rootX
Sim root x coordinate -
rootY
Sim root y coordinate -
lineLength
Length of the line -
angle
Angle of the elevator -
simFeedForward
-
elevatorZeroingPower
Power for zeroing the elevator- See Also:
-
elevatorZeroingStallToleranceM
Positional tolerance in meters for zeroing the elevator- See Also:
-
elevatorZeroingDurationS
Duration of stalling in seconds necessary for the elevator zero command to finish- See Also:
-
-
Constructor Details
-
ElevatorConf
public ElevatorConf(String name, Motors[] motorTypes, int[] motorDeviceIDs, String[] motorCanBus, com.ctre.phoenix6.signals.InvertedValue[] motorDirection, com.ctre.phoenix6.signals.NeutralModeValue[] motorEnabledBrakeMode, com.ctre.phoenix6.signals.NeutralModeValue[] motorDisabledBrakeMode, int[][] gearRatio, DistanceUnits positionalLimitsUnit, double positionalMin, double positionalMax, DistanceUnits trapezoidalLengthUnit, VelocityUnits trapezoidalVelocityUnit, double trapezoidalLimitsVelocity, AccelerationUnits trapezoidalAccelerationUnit, double trapezoidalLimitsAcceleration, DistanceUnits defaultTolerancesUnit, double defaultLowerTolerance, double defaultUpperTolerance, FeedforwardConstants feedForward, FeedforwardConstants simFeedForward, com.ctre.phoenix6.configs.CurrentLimitsConfigs currentLimitsConfigs, PIDSGVAConstants slot0, PIDSGVAConstants slot1, PIDSGVAConstants slot2, MassUnits carriageMassUnit, double carriageMassValue, double mech2dDim, String rootName, double rootX, double rootY, double lineLength, double angle, PIDSGVAConstants simSlot0, PIDSGVAConstants simSlot1, PIDSGVAConstants simSlot2, DistanceUnits drumDiameterUnit, double drumDiameter) - Parameters:
name
- name of the subsystemmotorTypes
- array of motor types usedmotorDeviceIDs
- CAN IDs of the motorsmotorCanBus
- CAN buses which the motors are connected tomotorDirection
- motor inversion settingsmotorEnabledBrakeMode
- brake mode when motors are enabledmotorDisabledBrakeMode
- brake mode when motors are disabledgearRatio
- gear ratiospositionalLimitsUnit
- units for positional limits on elevatorpositionalMin
- positional minimum on elevatorpositionalMax
- positional maximum on elevatortrapezoidalLengthUnit
- units for trapezoidal motion lengthtrapezoidalVelocityUnit
- units for trapezoidal motion velocityODOtrapezoidalLimitsVelocity
- velocity limits for trapezoidal motiontrapezoidalAccelerationUnit
- units for trapezoidal motion accelerationtrapezoidalLimitsAcceleration
- acceleration limits for trapezoidal motiondefaultTolerancesUnit
- default unit of the tolerance valuesdefaultLowerTolerance
- default lower tolerancedefaultUpperTolerance
- default upper tolerancefeedForward
- feedforward constantssimFeedForward
- simulated feedforward constantscurrentLimitsConfigs
- current limit configurationsslot0
- PID slot 0 configurationslot1
- PID slot 1 configurationslot2
- PID slot 2 configurationcarriageMassUnit
- units for the carriage masscarriageMassValue
- value of the carriage massmech2dDim
- dimensions of mechanical systemrootX
- sim root x coordinaterootY
- sim root y coordinaterootName
- sim root namelineLength
- length of the lineangle
- angle of the elevatorsimSlot0
- simulated PID slot 0 configurationsimSlot1
- simulated PID slot 1 configurationsimSlot2
- simulated PID slot 2 configurationdrumDiameterUnit
- units for the drum diameterdrumDiameter
- diameter of the drum
-