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 SummaryFieldsModifier 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.MicrosystemConfdefaultLowerTolerance, defaultTolerancesUnit, defaultUpperTolerance, motorCanBus, motorConfig, motorDeviceIDs, motorDirection, motorDisabledBrakeMode, motorEnabledBrakeMode, motorToMechRatio, motorTypes, name, numMotors, trapezoidalAccelerationUnit, trapezoidalLimits, trapezoidalLimitsAcceleration, trapezoidalLimitsVelocity, trapezoidalVelocityUnit
- 
Constructor SummaryConstructorsConstructorDescriptionPivotConf(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 SummaryMethods inherited from class tagalong.subsystems.micro.confs.MicrosystemConfcalculateGearRatio
- 
Field Details- 
rotationalLimitUnitUnit for rotational limit (default: rotations)
- 
rotationalMinMinimum and maximum rotation
- 
rotationalMaxMinimum and maximum rotation
- 
feedForwardFeedforward model for the arm
- 
encoderTypeEncoder type used for the pivot
- 
encoderDeviceIDDevice ID of the encoder
- 
encoderCanBusCAN bus of the encoder
- 
motorToEncoderRatioRatio between the motor and encoder
- 
encoderToPivotRatioGear ratio between encoder and pivot
- 
encoderConfigEncoder configuration
- 
encoderConfigZeroToOneWhether the encoder configuration operates in a zero to one range
- 
encoderConfigClockwisePositiveWhether the encoder is configured as clockwise positive
- 
encoderConfigMagnetOffsetUnitUnit of the encoder magnet offset
- 
encoderConfigMagnetOffsetValueValue of the encoder magnet offset
- 
closedLoopConfigsContinuousWrapWhether there is continuous wrapping in closed loop configurations
- 
ffOffsetUnitUnit of the feedforward offset
- 
ffOffsetValueValue of the feedforward offset
- 
profileOffsetUnitUnit of the profile offset
- 
profileOffsetValueValue of the profile offset
- 
mech2dDimDimension of the mechanical system
- 
rootNameSim root name
- 
rootXSim root x coordinate
- 
rootYSim root y coordinate
- 
pivotMOIMoment of inertia for the pivot
- 
pivotLengthMLength of the pivot in meters
 
- 
- 
Constructor Details- 
PivotConfpublic 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 name
- motorTypes- motor types
- motorDeviceIDs- motor device ids
- motorCanBus- motor can bus
- motorDirection- motor directions
- encoderType- encoder type used for the pivot
- encoderDeviceID- device id of the encoder
- encoderCanBus- can bus of the encoder
- encoderConfigZeroToOne- whether the encoder config operates in a 0 to 1 range
- encoderConfigClockwisePositive- whether the encoder is configured as clockwise positive
- encoderConfigMagnetOffsetUnit- unit of the encoder magnet offset
- encoderConfigMagnetOffsetValue- value of the encoder magnet offset
- motorEnabledBrakeMode- brake mode when motors are enabled
- motorDisabledBrakeMode- brake mode when motors are disabled
- motorToPivotRatio- ratio between the motor and encoder
- encoderToPivotRatio- gear ratio between encoder and pivot
- rotationalLimitsUnit- unit for rotational limit (default: rotations)
- rotationalMin- minimum rotation
- rotationalMax- maximum rotation
- trapezoidalLengthUnit- unit of trapezoidal motion length
- trapezoidalVelocityUnit- unit of trapezoidal velocity
- trapezoidalLimitsVelocity- trapezoidal motion velocity limits
- trapezoidalAccelerationUnit- unit of trapezoidal acceleration
- trapezoidalLimitsAcceleration- trapezoidal motion acceleration limits
- defaultTolerancesUnit- unit of default tolerances
- defaultLowerTolerance- default lower tolerance
- defaultUpperTolerance- default upper tolerance
- feedForward- feedforward model for the arm
- simFeedForward- feedforward model for simulation
- currentLimitsConfigs- current limit configurations
- slot0- slot 0 configuration
- slot1- slot 1 configuration
- slot2- slot 2 configuration
- simSlot0- slot 0 configuration for simulation
- simSlot1- slot 1 configuration for simulation
- simSlot2- slot 2 configuration for simulation
- closedLoopConfigsContinuousWrap- whether continuous wrapping in closed loop configs
- 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- dimensions of 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
 
 
-