Hi,
You can find below code in Auto toolbox Lab0011. Would you pls kindly advise how to get the value of calib_params and the theory of the compensation?
lab0011_mrr_beamsteering\src\common\cfg.c
void Get_PhaseTxShifterCodeValue(int8_t steering_angle , uint8_t *tx1PhShCode, uint8_t *tx2PhShCode, uint8_t *tx3PhShCode)
{
uint8_t index;
uint8_t calib_params[3] = {0, 0, 19 };
int8_t l_tx1phCode, l_tx2phCode, l_tx3phCode;
...
/*Use the calibration parameters to do the compensation*/
l_tx1phCode = (l_tx1phCode + calib_params[0])%64;
l_tx2phCode = (l_tx2phCode + calib_params[1])%64;
l_tx3phCode = (l_tx3phCode + calib_params[2])%64;
*tx1PhShCode = (uint8_t)l_tx1phCode;
*tx2PhShCode = (uint8_t)l_tx2phCode;
*tx3PhShCode = (uint8_t)l_tx3phCode;
break;
}
}
return;
}
Thanks,
Chris