Package tagalong.subsystems.micro.confs
Class RollerConf
java.lang.Object
tagalong.subsystems.micro.confs.MicrosystemConf
tagalong.subsystems.micro.confs.RollerConf
- Direct Known Subclasses:
FlywheelConf
Configuration for the roller microsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SimpleMotorFeedforward
Motor feedforward modelfinal double
Dimension of the mechanical systemfinal double
Moment of inertia for the rollerfinal String
Sim root namefinal double
Sim root x coordinatefinal double
Sim root y coordinatefinal int
Number of simulated ligaments usedFields 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
ConstructorsConstructorDescriptionRollerConf
(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 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, PIDSGVAConstants simSlot0, PIDSGVAConstants simSlot1, PIDSGVAConstants simSlot2, double mech2dDim, String rootName, double rootX, double rootY, int simNumLigaments, double rollerMOI) -
Method Summary
Methods inherited from class tagalong.subsystems.micro.confs.MicrosystemConf
calculateGearRatio
-
Field Details
-
mech2dDim
Dimension of the mechanical system -
rootName
Sim root name -
rootX
Sim root x coordinate -
rootY
Sim root y coordinate -
simNumLigaments
Number of simulated ligaments used -
rollerMOI
Moment of inertia for the roller -
feedForward
Motor feedforward model
-
-
Constructor Details
-
RollerConf
public RollerConf(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 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, PIDSGVAConstants simSlot0, PIDSGVAConstants simSlot1, PIDSGVAConstants simSlot2, double mech2dDim, String rootName, double rootX, double rootY, int simNumLigaments, double rollerMOI) - 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 ratiostrapezoidalLengthUnit
- units for trapezoidal motion lengthtrapezoidalVelocityUnit
- units for trapezoidal motion velocitytrapezoidalLimitsVelocity
- 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 configurationsimSlot0
- simulated PID slot 0 configurationsimSlot1
- simulated PID slot 1 configurationsimSlot2
- simulated PID slot 2 configurationmech2dDim
- dimensions of mechanical systemrootName
- sim root namerootX
- sim root x coordinaterootY
- sim root y coordinatesimNumLigaments
- number of simulated ligaments usedrollerMOI
- moment of inertia for the roller
-