Skip to content

Always refresh first #12

@y0shi

Description

@y0shi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions