-
Notifications
You must be signed in to change notification settings - Fork 1
Always refresh first #12
Copy link
Copy link
Open
Description
Robot-2025/src/main/java/frc/robot/subsystems/Elevator/ElevatorConstants.java
Lines 23 to 58 in b7461c4
| public static Slot0Configs createSlot0Configs(){ | |
| Slot0Configs slot = new Slot0Configs(); | |
| slot.kV = ELEVATOR_kV; | |
| slot.kS = ELEVATOR_kS; | |
| slot.kP = ELEVATOR_kP; | |
| slot.kI = ELEVATOR_kI; | |
| slot.kD = ELEVATOR_kD; | |
| return slot; | |
| } | |
| //SoftLimitConfig | |
| public static final double ELEVATOR_FORWARD_SOFT_LIMIT = 100; | |
| public static final double ELEVATOR_REVERSE_SOFT_LIMIT = 0; | |
| public static SoftwareLimitSwitchConfigs createSoftLimitConigs(){ | |
| SoftwareLimitSwitchConfigs newConfigs = new SoftwareLimitSwitchConfigs(); | |
| newConfigs.ForwardSoftLimitEnable = false; | |
| newConfigs.ReverseSoftLimitEnable = false; | |
| newConfigs.ForwardSoftLimitThreshold = ELEVATOR_FORWARD_SOFT_LIMIT; | |
| newConfigs.ReverseSoftLimitThreshold = ELEVATOR_REVERSE_SOFT_LIMIT; | |
| return newConfigs; | |
| } | |
| //MotionMagicConfigs | |
| public static MotionMagicConfigs createMotionMagicConfigs(){ | |
| MotionMagicConfigs newConfigs = new MotionMagicConfigs(); | |
| //TODO: ADD MORE IF NECESSARY | |
| return newConfigs; | |
| } | |
| //MotorConfigs | |
| public static MotorOutputConfigs createMotorOutputConfigs(){ | |
| MotorOutputConfigs newConfigs = new MotorOutputConfigs(); | |
| //TODO:ADD MORE IF NECESSARY | |
| return newConfigs; | |
| } |
you should alwasy refresh configurators first before applying changes in order to not overwrite with zeros.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels