= configs.TalonFXConfiguration()\
.with_feedback(configs.FeedbackConfigs()\
.with_feedback_remote_sensor_id(encoder) \
.with_feedback_sensor_source(signals.FeedbackSensorSourceValue.REMOTE_CANCODER)
)\
.with_motor_output(configs.MotorOutputConfigs() \
.with_neutral_mode(signals.NeutralModeValue.BRAKE) \
.with_inverted(signals.InvertedValue.CLOCKWISE_POSITIVE)
)\
.with_current_limits(configs.CurrentLimitsConfigs() \
.with_stator_current_limit_enable(True) \
.with_stator_current_limit(60)
)\
.with_slot0(configs.Slot0Configs() \
.with_k_s(0.34284) \
.with_k_v(5.9659) \
.with_k_a(0.5081) \
.with_k_g(0.44017) \
.with_k_p(142.58) \
.with_k_d(22.153)
)\
.with_motion_magic(configs.MotionMagicConfigs() \
.with_motion_magic_acceleration(8) \
.with_motion_magic_cruise_velocity(2) \
.with_motion_magic_jerk(16)
)