Package tagalong.subsystems.micro.confs
Class FlywheelConf
java.lang.Object
tagalong.subsystems.micro.confs.MicrosystemConf
tagalong.subsystems.micro.confs.RollerConf
tagalong.subsystems.micro.confs.FlywheelConf
Configuration for the flywheel
-
Field Summary
Fields inherited from class tagalong.subsystems.micro.confs.RollerConf
feedForward, mech2dDim, rollerMOI, rootName, rootX, rootY, simNumLigaments
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
ConstructorsConstructorDescriptionFlywheelConf
(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
-
Constructor Details
-
FlywheelConf
public FlywheelConf(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 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 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
-