im new to the coding world and ive been bashing my head for three days trying to get the config right and i got everything good i think but pls tell me what i have wrong im using a ams encoder AS5048A-TS_EK_AB and a cobra motor 400kv
odrv0.axis0.motor.config.current_lim = 50
odrv0.axis0.controller.config.vel_limit = 600
odrv0.axis0.motor.config.calibration_current = 55
odrv0.config.brake_resistance = 0.5
odrv0.axis0.motor.config.pole_pairs = 11
odrv0.axis0.motor.config.torque_constant = 8.27
odrv0.axis0.motor.config.motor_type = MOTOR_TYPE_HIGH_CURRENT
#encoder
odrv0.axis0.encoder.config.abs_spi_cs_gpio_pin = 4
odrv0.axis0.encoder.config.mode = ENCODER_MODE_SPI_ABS_AMS
odrv0.axis0.encoder.config.cpr = 2**14
odrv0.axis0.encoder.config.use_index = True