Package tagalong.subsystems.micro.confs
Class PivotConf
java.lang.Object
tagalong.subsystems.micro.confs.MicrosystemConf
tagalong.subsystems.micro.confs.PivotConf
Configuration for the pivot microsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
Whether there is continuous wrapping in closed loop configurationsfinal String
CAN bus of the encoderfinal com.ctre.phoenix6.configs.CANcoderConfiguration
Encoder configurationfinal boolean
Whether the encoder is configured as clockwise positivefinal DistanceUnits
Unit of the encoder magnet offsetfinal double
Value of the encoder magnet offsetfinal boolean
Whether the encoder configuration operates in a zero to one rangefinal int
Device ID of the encoderdouble
Gear ratio between encoder and pivotfinal Encoders
Encoder type used for the pivotfinal ArmFeedforward
Feedforward model for the armfinal DistanceUnits
Unit of the feedforward offsetfinal double
Value of the feedforward offsetfinal double
Dimension of the mechanical systemdouble
Ratio between the motor and encoderfinal double
Length of the pivot in metersfinal double
Moment of inertia for the pivotfinal DistanceUnits
Unit of the profile offsetfinal double
Value of the profile offsetfinal String
Sim root namefinal double
Sim root x coordinatefinal double
Sim root y coordinatefinal DistanceUnits
Unit for rotational limit (default: rotations)final double
Minimum and maximum rotationfinal double
Minimum and maximum rotationFields 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
ConstructorsConstructorDescriptionPivotConf
(String name, Motors[] motorTypes, int[] motorDeviceIDs, String[] motorCanBus, com.ctre.phoenix6.signals.InvertedValue[] motorDirection, Encoders encoderType, int encoderDeviceID, String encoderCanBus, boolean encoderConfigZeroToOne, boolean encoderConfigClockwisePositive, DistanceUnits encoderConfigMagnetOffsetUnit, double encoderConfigMagnetOffsetValue, com.ctre.phoenix6.signals.NeutralModeValue[] motorEnabledBrakeMode, com.ctre.phoenix6.signals.NeutralModeValue[] motorDisabledBrakeMode, int[][] motorToPivotRatio, int[][] encoderToPivotRatio, DistanceUnits rotationalLimitsUnit, double rotationalMin, double rotationalMax, 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, boolean closedLoopConfigsContinuousWrap, DistanceUnits ffOffsetUnit, double ffOffsetValue, DistanceUnits profileOffsetUnit, double profileOffsetValue, double mech2dDim, String rootName, double rootX, double rootY, double pivotMOI, double pivotLengthM) -
Method Summary
Methods inherited from class tagalong.subsystems.micro.confs.MicrosystemConf
calculateGearRatio
-
Field Details
-
rotationalLimitUnit
Unit for rotational limit (default: rotations) -
rotationalMin
Minimum and maximum rotation -
rotationalMax
Minimum and maximum rotation -
feedForward
Feedforward model for the arm -
encoderType
Encoder type used for the pivot -
encoderDeviceID
Device ID of the encoder -
encoderCanBus
CAN bus of the encoder -
motorToEncoderRatio
Ratio between the motor and encoder -
encoderToPivotRatio
Gear ratio between encoder and pivot -
encoderConfig
Encoder configuration -
encoderConfigZeroToOne
Whether the encoder configuration operates in a zero to one range -
encoderConfigClockwisePositive
Whether the encoder is configured as clockwise positive -
encoderConfigMagnetOffsetUnit
Unit of the encoder magnet offset -
encoderConfigMagnetOffsetValue
Value of the encoder magnet offset -
closedLoopConfigsContinuousWrap
Whether there is continuous wrapping in closed loop configurations -
ffOffsetUnit
Unit of the feedforward offset -
ffOffsetValue
Value of the feedforward offset -
profileOffsetUnit
Unit of the profile offset -
profileOffsetValue
Value of the profile offset -
mech2dDim
Dimension of the mechanical system -
rootName
Sim root name -
rootX
Sim root x coordinate -
rootY
Sim root y coordinate -
pivotMOI
Moment of inertia for the pivot -
pivotLengthM
Length of the pivot in meters
-
-
Constructor Details
-
PivotConf
public PivotConf(String name, Motors[] motorTypes, int[] motorDeviceIDs, String[] motorCanBus, com.ctre.phoenix6.signals.InvertedValue[] motorDirection, Encoders encoderType, int encoderDeviceID, String encoderCanBus, boolean encoderConfigZeroToOne, boolean encoderConfigClockwisePositive, DistanceUnits encoderConfigMagnetOffsetUnit, double encoderConfigMagnetOffsetValue, com.ctre.phoenix6.signals.NeutralModeValue[] motorEnabledBrakeMode, com.ctre.phoenix6.signals.NeutralModeValue[] motorDisabledBrakeMode, int[][] motorToPivotRatio, int[][] encoderToPivotRatio, DistanceUnits rotationalLimitsUnit, double rotationalMin, double rotationalMax, 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, boolean closedLoopConfigsContinuousWrap, DistanceUnits ffOffsetUnit, double ffOffsetValue, DistanceUnits profileOffsetUnit, double profileOffsetValue, double mech2dDim, String rootName, double rootX, double rootY, double pivotMOI, double pivotLengthM) - Parameters:
name
- pivot namemotorTypes
- motor typesmotorDeviceIDs
- motor device idsmotorCanBus
- motor can busmotorDirection
- motor directionsencoderType
- encoder type used for the pivotencoderDeviceID
- device id of the encoderencoderCanBus
- can bus of the encoderencoderConfigZeroToOne
- whether the encoder config operates in a 0 to 1 rangeencoderConfigClockwisePositive
- whether the encoder is configured as clockwise positiveencoderConfigMagnetOffsetUnit
- unit of the encoder magnet offsetencoderConfigMagnetOffsetValue
- value of the encoder magnet offsetmotorEnabledBrakeMode
- brake mode when motors are enabledmotorDisabledBrakeMode
- brake mode when motors are disabledmotorToPivotRatio
- ratio between the motor and encoderencoderToPivotRatio
- gear ratio between encoder and pivotrotationalLimitsUnit
- unit for rotational limit (default: rotations)rotationalMin
- minimum rotationrotationalMax
- maximum rotationtrapezoidalLengthUnit
- unit of trapezoidal motion lengthtrapezoidalVelocityUnit
- unit of trapezoidal velocitytrapezoidalLimitsVelocity
- trapezoidal motion velocity limitstrapezoidalAccelerationUnit
- unit of trapezoidal accelerationtrapezoidalLimitsAcceleration
- trapezoidal motion acceleration limitsdefaultTolerancesUnit
- unit of default tolerancesdefaultLowerTolerance
- default lower tolerancedefaultUpperTolerance
- default upper tolerancefeedForward
- feedforward model for the armsimFeedForward
- feedforward model for simulationcurrentLimitsConfigs
- current limit configurationsslot0
- slot 0 configurationslot1
- slot 1 configurationslot2
- slot 2 configurationsimSlot0
- slot 0 configuration for simulationsimSlot1
- slot 1 configuration for simulationsimSlot2
- slot 2 configuration for simulationclosedLoopConfigsContinuousWrap
- whether continuous wrapping in closed loop configsffOffsetUnit
- unit of the feedforward offsetffOffsetValue
- value of the feedforward offsetprofileOffsetUnit
- unit of the profile offsetprofileOffsetValue
- value of the profile offsetmech2dDim
- dimensions of mechanical systemrootName
- sim root namerootX
- sim root x coordinaterootY
- sim root y coordinatepivotMOI
- moment of inertia for the pivotpivotLengthM
- length of the pivot in meters
-