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 booleanWhether there is continuous wrapping in closed loop configurationsfinal StringCAN bus of the encoderfinal com.ctre.phoenix6.configs.CANcoderConfigurationEncoder configurationfinal booleanWhether the encoder is configured as clockwise positivefinal DistanceUnitsUnit of the encoder magnet offsetfinal doubleValue of the encoder magnet offsetfinal booleanWhether the encoder configuration operates in a zero to one rangefinal intDevice ID of the encoderdoubleGear ratio between encoder and pivotfinal EncodersEncoder type used for the pivotfinal ArmFeedforwardFeedforward model for the armfinal DistanceUnitsUnit of the feedforward offsetfinal doubleValue of the feedforward offsetfinal doubleDimension of the mechanical systemdoubleRatio between the motor and encoderfinal doubleLength of the pivot in metersfinal doubleMoment of inertia for the pivotfinal DistanceUnitsUnit of the profile offsetfinal doubleValue of the profile offsetfinal StringSim root namefinal doubleSim root x coordinatefinal doubleSim root y coordinatefinal DistanceUnitsUnit for rotational limit (default: rotations)final doubleMinimum and maximum rotationfinal doubleMinimum 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
-